Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LABEL GENERATION

2 views
Skip to first unread message

Fauze Valerio Polpeta

unread,
Aug 18, 2003, 10:13:34 AM8/18/03
to dj...@delorie.com

Hi everybody,

Im working in a project of a new embedded operating system for RCX and Im
using the GNU Cross Compiler! This new system is intended to be multi-
plataform and the generation of symbols by the compiler must have the same
standard to get this goal! However, by default, the GNU GCC for H8300 put
one more underscore in the symbols names, wich give some problems because
the gcc for other plataforms doesnt do that, they just put the assembling
underscore defined by USER_LOCAL_PREFIX in the target features!

I had tried to use fno-leading-underscore im my compilations, but when
using that I've got problems with libs calls, wich was, by default,
compiled with one more underscore when I installed the GCC!!!

Please, can somebody help me with that?!? What features change in
the gcc configuration or target feature files change to eliminate the
second underscore?! Follow the example of what Im trying to say:

High level symbol:

__BEGIN_IMP
Thread_Common * volatile Thread_Common::_running;
__END_IMP

Low level (assembled) symbol other plataforms like i386 (THIS IS WHAT I
WANT):

_ZN6System3Imp13Thread_Common8_runningE
//One underscore at the beggining (from assemble macros)

Low level symbol in hitachi:

__ZN6System3Imp13Thread_Common8_runningE
//Two underscores at the beggining (one from assemble and other
//from?????

Please send me something, my MSc. will brake my neck if I not find
something!!! :)

Regards.

------------------------------------------
Fauze Valério Polpeta
PGCC - UFSC
www.inf.ufsc.br/~fauze
ICQ 44654038
------------------------------------------


Andrew Cottrell

unread,
Aug 19, 2003, 5:29:35 AM8/19/03
to
>
>Please, can somebody help me with that?!? What features change in
>the gcc configuration or target feature files change to eliminate the
>second underscore?! Follow the example of what Im trying to say:

If no one responds then Andris may still be on holidays. I suggest
that you search the mailing list archives at www.delorie.com , but I
can't remmeber seeing anything like this over the years, but I may
have missed it.

If you still get no where after a few days then ask in the gcc
newsgroups for help.

Failing all of the above the final one is to have a look in the gcc
readme.dj file and send an email to Andris as he does the DJGPP ports
and may know where to look.


Andrew

Hans-Bernhard Broeker

unread,
Aug 19, 2003, 9:01:21 AM8/19/03
to
Fauze Valerio Polpeta <fa...@lisha.ufsc.br> wrote:

> Im working in a project of a new embedded operating system for RCX and Im
> using the GNU Cross Compiler!

What, exactly, is the relevance of DJGPP in this effort?

In other words, I'm quite convinced you're looking for the answer in
the wrong place. The GCC docs and/or GCC mailing lists would be more
on-target.

> This new system is intended to be multi- plataform and the
> generation of symbols by the compiler must have the same standard to
> get this goal!

Why that? Face it: application binary interfaces *are*
platform-dependent, by their very nature. Pretending otherwise won't
help you solve any problem, I think.

BTW: Is there any particular reason you cannot seem to end any
sentence with a normal full-stop, but always have to !exclamate!?


--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

0 new messages