gcc+H8

I've got to write software for an Hitachi (Renesas) H8/300 MCU. I've written software in C, and, when I try to compile it with gcc using the command line "gcc -c -O2 -ms out.o in.c" the system answers "cc1: error: invalid option 's'". What's wrong?

Tank you

Max

Reply to
max.giacometti
Loading thread data ...

The -ms option is specific to the H8 compiler. In your command line you are just calling gcc, rather then h8300-elf-gcc. Could it be that the wrong version of gcc on your machine is being invoked? Check your paths and environment variables.

Regards, Richard.

formatting link
for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *

Reply to
FreeRTOS.org

What's the chip model number you are using eg H8.....

That depends as -ms is invalid in newer versions were as -ms2600 (H8S/2600 core) and -msx (H8SX core)

What version of GCC are you using from where?

See sig and

formatting link

--
Paul Carpenter          | paul@pcserviceselectronics.co.uk
    PC Services
 Click to see the full signature
Reply to
Paul Carpenter

I'm using gcc3.4.4.1 under cygwin. I think I didn't installed the right compiler for H8. I'll search the right one.

I'm also trying to use h8tools, that should be an ad hoc suite for H8 MCU, based on gcc. But I think some files are damaged, because when I try to launch ld.exe, my system crashes. Can you give me a link where to download again this tool?

Max

Reply to
max.giacometti

Did Paul not just do that?

"See sig and

formatting link
"

Regards, Richard.

formatting link
for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *

Reply to
FreeRTOS.org

I've missed it, sorry

Max

FreeRTOS.org ha scritto:

Reply to
max.giacometti

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.