Hi,
The code below dot line is from Page 82/332, spru186v.pdf. It can be run and debug days ago. Then, my computer shutdown by itself. After reboot and hard disk recovery, this project cannot run again. Now, it can only run without _ with eabi option.
I create a separate project with COFF option. It can run without _ for both userfunc and printf functions. So, for mixed with userfunc and _printf, what option can make it runnable?
Thanks,
........................
1 00000000 .sect ".text"
2 .global userfunc
3 .global _printf
4
5 userfunc: .asmfunc stack_usage(16)
6 00000000 00000010! CALL .S1 _printf
7 00000004 01BC94F6 STW .D2T2 B3,*B15--(16)
8 00000008 01800E2A' MVKL .S2 RL0,B3
9 0000000c 01800028+ MVKL .S1 SL1+0,A3
10 00000010 01800068+ MVKH .S1 SL1+0,A3
11
12 00000014 01BC22F5 STW .D2T1 A3,*+B15(4)
13 00000018 0180006A' || MVKH .S2 RL0,B3
14
15 0000001c 01BC92E6 RL0: LDW .D2T2 *++B15(16),B3
16 00000020 020008C0 ZERO .D1 A4
17 00000024 00004000 NOP 3
18 00000028 000C0362 RET .S2 B3
19 0000002c 00008000 NOP 5
20 .endasmfunc
21
22 00000000 .sect ".const"
23 00000000 00000048 SL1: .string "Hello World!",10,0