Re: [uClinux-dev] Is supervisor/user mode is necessary for uCLinux ?

From: Joe deBlaquiere (jadb@redhat.com)
Date: Tue Jan 30 2001 - 09:53:52 EST


Mahadev K Cholachagudda wrote:

> 
> No, we are planning adopt the same kernel which uCLinux has many ports for
> coldfire. i.e. 2.0.38.
>

I would suggest at least looking at the 2.4.X uClinux tree. The work 
should be about the same either way, and there are some significant 
advantages to the 2.4 codebase.

 
> 
> This document describes about the features of gcc which are very much
> necessary to compile the Linux and also about the features that an 'x'
> compiler does not have if used to compile the Linux.
> 
> Details:
> 
> 1. The GCC has an explicit inline declaration for functions. So this option
> may enable the calling function to have the contents of some global
> variables in particular register.
> 
> 2. The GCC has an support for inline assembly with 'C' expression operands
> which can be used in 'C' functions.
> 
> 3. The GCC has a support for including the 'C' header files into the
> assembly source files.
> 
> 

I think you need to take a more detailed look at the list. I know there is:
* extensive use of zero length arrays
* at least sporadic use of statement-expressions
* function, type and variable attributes (e.g. "__attribute__ ((packed))" )
* use of __builtin_??? for things like finding the return address

You're really swimming against the flow of the river by trying to use 
another compiler. Do yourself a favor and Do The Right Thing (tm).


-- 
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9200
fax   : (256)-837-3839

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:28 EDT