This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Synthetic target on linux x86_64 host
- From: Ross Younger <wry at ecoscentric dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 03 May 2009 11:24:49 +0100
- Subject: Re: [ECOS] Synthetic target on linux x86_64 host
- References: <gtho3k$v48$1@ger.gmane.org>
Tarmo Kuuse wrote:
Can synthetic target even be built with native x86_64 tools?
As Andrew has said it's not a supported environment - synth predates x86_64
by some years - and I suspect would require a proper porting effort in due
course.
However, I did find myself poking at the synth target on my workstation a
few weeks ago (Ubuntu 8.10, 64-bit) and was able to get it going, after a
fashion, without very much trouble (and without having to know much about
x86/x86_64 guts!) in order to play with some new code I was writing.
I was using the eCos i386-elf toolchain; the syscalls and so on all seemed
to just work thanks to x86_64's backwards compatibility (and I have various
32-bit compatibility libs installed, which may or may not have helped).
I manually configured my ecos.ecc to use i386-elf, and once I had built eCos
I had to edit target.ld by hand and remove the mention of libgcc_eh.a in
order for my test applications to link. For debugging, the native gdb (not
i386-elf-gcc!) just worked.
Obviously, running synth cross-architecture in this way is not tested at all
- it seemed to work for my limited purposes, and might for you, but if it
breaks you get to keep both pieces :-)
Ross
--
eCosCentric Ltd, Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK
Registered in England no. 4422071. www.ecoscentric.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss