Le Thursday 23 August 2012 11:23:49, Bruno Haible a écrit :
> Hi Bastien,
> 
> > Could be possible to get under the section target platform the
> > compiler supported?
> 
> You mean in the documentation? 

Yes in the documentation
> gnulib supports all ANSI C compilers,
> except those that are evidently too buggy (e.g. pcc-1.0 [1]).
> 
> > I need to know the compiler used.
> 
> You get a list of known predefs for known compilers from [2]
> but this list is constantly growing. It would not a good idea to
> reject an ANSI C compiler just because it's not in this list or
> because it doesn't have predefs.

Ok so my idea is a dead end. I have planned to use .init section in order to 
get current directory....

The second part of the idea still work. I plan to follow back from **environ 
the stack in order to get argv...

It seems pretty portable across a lot of arch at least for elf.

Bastien

> Bruno
> 
> 
> [1] http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00110.html
> [2] http://sourceforge.net/p/predef/wiki/Compilers/

Reply via email to