[superh-gnu-discuss] gcc flag: what to add
Prasanta Sadhukhan
psadhukhan at gmail.com
Fri Apr 29 07:47:28 UTC 2011
On Thu, Apr 28, 2011 at 4:45 PM, Andrew Stubbs <ams at codesourcery.com> wrote:
> On 28/04/11 11:35, Prasanta Sadhukhan wrote:
>
>> using sh-linux-gnu-gcc -m3 -Wa,--isa=sh3
>>
>> but I am getting "Illegal Instruction" for printing "float" value. If I
>> remove "float" usage then I can get the program to work
>>
>
> Sorry, the CodeSourcery Lite toolchain currently only supports SH-4A.
>
> The options you mention do allow you to compile your own code for other
> architectures (although we don't test that it produces *good* code for
> them), but there are no corresponding libraries to link against, so you
> still get SH-4A code from there - hence the illegal instructions.
>
> If you revert back to the GCC 4.4 based Lite toolchain [1], you'll find
> that that supported SH4AL-DSP, which is essentially the same as -m4-nofpu,
> so you might get further with that.
>
> Thanks for the information. However, when I tried Sourcery G++ Lite 4.4-200
and compiled the program with
-m4-nofpu
I am still getting "Illegal instruction". [also tried with the above
options]
I guess -m4-nofpu generated code will still not run in SH7712 sh3
architecture, am I right? Can any of this lite toolchain in
http://www.codesourcery.com/sgpp/lite/superh/portal/subscription6790generate
code that will run in SH7712 sh3 chipset?
The other toolchain editions [2] still support SH4AL-DSP, and come with
> technical support. (You can try them for 30 days, free of charge.)
>
> If you would like CodeSourcery toolchains to support SH3, please contact
> sales at codesourcery.com.
>
> Hope that helps
>
> Andrew
>
> [1] http://www.codesourcery.com/sgpp/lite/superh/portal/subscription6790
> [2] http://www.codesourcery.com/sgpp/editions.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/superh-gnu-discuss/attachments/20110429/9acdf6c1/attachment.html>
More information about the superh-gnu-discuss
mailing list