This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cpu32 target but 68020 code generated


Hi,
I really need some help!!
I am trying to build an application running on a cpu32 microcontroller (without fpu). I notice that when I link with libc.a, I obtain a code for 68020 with fpu!!! (see the fmovemx ....)


0011903a <_vfprintf_r>:
  11903a:	4e56 f978      	linkw %fp,#-1672
  11903e:	f227 e00c      	fmovemx %fp2-%fp3,%sp@-
...

I tried to play many time with the linker ... unsuccessfully. Here is my command line

app.elf : crt0.o main.o c68_Usr.ld Makefile
$(CC) crt0.o main.o ioExt.o comm.o kern.o --verbose -mcpu32 - nostartfiles -msoft-float -Tc68_Usr.ld -lc -o $@


How can I force gcc to deliver me a good code for the cpu32 microcontroller (without floating point special instructions)?
Any suggestions?
Regards Edo.


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]