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

See the CrossGCC FAQ for lots more infromation.


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

Re: mingw32-hosted cross compiler


Jyrki O Saarinen wrote:

> Has anyone succeeded in building a mingw32 hosted h8300 targeted C and C++
> compiler?

Are you building on a mingw32 machine or on a Linux machine (ie. doing a Canadian
cross compile) ?
The Canadian cross is more likely to succeed.


> Also, what it takes to modify g++ so that it doesn't try to link
> lstdc++ which isn't obviously available on the H8 systems
> (I/O etc. - well a subset could be possible to be available)

libc++ is now part of GCC.  It should compile fine and all features should be
available as far as I know.  To get I/O to work is the same as for the C
library.  You need to write some stubs for write(), read(), etc.

The linker options "-nostartfiles", "-nodefaultlibs" and "-nostdlib" are
available so that various files are not used automatically.  You can also modify
the specs file if you want to.

Regards,
Brendan Simon.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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