This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I wrote.... 8<---------------------------- Well, I'd say neither really. What you are doing constitutes porting gcc to a new target architecture - not arm-linux-elf, but arm-uclinux-elf. The abi and implementation details of the C library (which after all is the interface between the C application environment and the OS) are one of the defining characteristics of the port (the other main ones being CPU and object file format). [SNIPPO!] For this to work, you would then do a "make LANGUAGES=c" to build the raw C compiler without worrying about libs or startup files. Then do "make LANGUAGES=c install" to install what you've got so far. At that point, you can use this raw compiler to build the uclinux c library from source. That will supply you with your libc, libm and crt startup files. 8<---------------------------- Sorry, I haven't been clear here. What matters is the calling convention used to make syscalls into the OS, and the frame layout and argument passing behaviour that it expects. If these match standard linux conventions, then ignore the first paragraph - arm-linux-elf should work, as long as you use it to build the C lib from source, and you might yet have to make a few fixincs patches. It's only if the conventions don't match that you're really defining a new target, and that is far more involved. You'd have to patch the code in config/arm/whatever (probably arm.c) to emit assembler code that implemented the new stack frame / syscall method / whatever. That would be where things got really tricky. The process of building a raw C compiler, using that to make the libc and startup files, and then using those to finish building the full compiler, should be much simpler than that. So tell us more about uclinux: does it use exactly the same ABI as standard linux? DaveK -- "screams erupted at a Seattle hotel where Microsoft founder Bill Gates was addressing an education and technology conference. He was whisked away as his audience bolted for the exits. Some audience members were knocked down by others trying to get out." -- CNN 2/28/01 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------ 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] |