Libgloss tree and diference between "architecture" and "platform".

Jeff Johnston
Tue Jan 18 16:56:00 GMT 2005

Nick Clifton wrote:
> Hi Paul,
>> Should i create a new directory in the libgloss tree (like 
>> libgloss/myplatform) or should i create specific files in the arm one 
>> (like libgloss/arm/redboot-syscalls.c i provide 
>> libgloss/arm/myplatform-syscalls.c) ?
> I would strongly suggest that you use the libgloss/arm directory.

Seconded.  That is the whole idea of the libgloss directory.  You build for arm 
and can then link in a variety of bsps to support particular boards.  As well, 
it is helpful when an exact match doesn't exist so that a developer can look for 
the closest match.

> If you are going to be creating lots of files you might like to use a 
> sub-directory off this directory,  eg:
>   libgloss/arm/myplatform/

It will be much easier for you to keep this in the arm subdirectory as you won't 
have to worry about configuration.

> Cheers
>   Nick

More information about the Newlib mailing list