[coldfire-gnu-discuss] floating point instructions enabled by default for gcc-4.3-43 on mcf5472 processor?

Wong, Ken Ken.Wong at christiedigital.com
Fri Feb 13 15:23:01 UTC 2009


I followed your advice, and everything is exactly as you said it would
be.  In other words, we are compiling for the 5475 cpu by default.

Thanks Maxim!

Ken.

-----Original Message-----
From: Maxim Kuvyrkov [mailto:maxim at codesourcery.com] 
Sent: Friday, February 13, 2009 9:43 AM
To: Wong, Ken
Cc: coldfire-gnu-discuss at codesourcery.com
Subject: Re: [coldfire-gnu-discuss] floating point instructions enabled
by default for gcc-4.3-43 on mcf5472 processor?

Wong, Ken wrote:
> Thanks for advice Maxim, our builds are currently omitting any type of
> -mcpu flag so that has me wondering even more which default flags I'm
> compiling with. :)
> 
> I'll setup the mcpu flag correctly today and see if the generating
> objects differ significantly from my usual build.
> 
> If anyone else has any advice about how to figure out what the default
> flags are for the toolchain, I'm all ears.

Default -mcpu= setting depends on target you use; e.g., it's -mcpu=m5475

for m68k-linux and -mcpu=5206 for m68k-elf.

One way to figure out precisely which compiler flags are being used is 
to let gcc compile a simple file with '-v' option and then inspect 
command line for cc1.  Gcc is actually a driver that invokes compiler 
(cc1) and/or assembler (as) and/or linker (ld) depending on the 
parameters given.

--
Maxim



More information about the coldfire-gnu-discuss mailing list