gcc for hitachi processors
RakeshN
rakeshn@kpit.com
Sun Aug 27 23:58:00 GMT 2000
hello to all,
I have just now started using gcc for compiling programs for the hitachi H8/300 series processor on windows 98 platform.
Since i just now installed it i thought of testing it with a small program.
main()
{
int a,b;
a = 3;
b = a+5;
}
I compiled it but it is giving me errors as follows
c:\windows\temp\ccgCeWBK.s:9: Error: invalid character '.' in opcode
and similar errors in line 10,11,13,14,15,17.
I am giving the listing also for your reference....
GAS LISTING C:\WINDOWS\TEMP\ccgCeWBk.s page 1
1 .file "test.c"
2 .data
3 gcc2_compiled.:
4 ___gnu_compiled_c:
5 .text
6 ???? 90 .align 2
7 .global _main
8 _main:
9 mov.l r14,@-r15
10 sts.l pr,@-r15
11 mov.l L2,r1
12 jsr @r1
13 mov r15,r14
14 mov r14,r15
15 lds.l @r15+,pr
16 rts
17 mov.l @r15+,r14
18 L3:
19 ???? 90 .align 2
20 L2:
21 ???? 00000000 .long ___main
GAS LISTING C:\WINDOWS\TEMP\ccgCeWBk.s page 2
DEFINED SYMBOLS
*ABS*:00000000 test.c
C:\WINDOWS\TEMP\ccgCeWBk.s:3 .data:00000000 gcc2_compiled.
C:\WINDOWS\TEMP\ccgCeWBk.s:4 .data:00000000 ___gnu_compiled_c
C:\WINDOWS\TEMP\ccgCeWBk.s:8 .text:00000000 _main
C:\WINDOWS\TEMP\ccgCeWBk.s:18 .text:00000000 L3
C:\WINDOWS\TEMP\ccgCeWBk.s:20 .text:00000000 L2
UNDEFINED SYMBOLS
r15
r14
___main
As is visible from the listing there is a '.' character in the opcode (mov . l ) in line 9 and in other lines also.....
Can someone please throw some light on this problem...
Thanks in advance
More information about the Gcc-help
mailing list