[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] New tcc display info?
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] New tcc display info? |
Date: |
Sat, 9 Feb 2013 22:48:41 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) |
Le samedi 9 février 2013 16:06:31, Christian Jullien a écrit :
> As with gcc or cl, could tcc -v show processor/system info ?
> For example, something similar to
> tcc –v
> tcc version 0.9.25 – WIN32 x86
> tcc version 0.9.25 – WIN32 x86_64
> tcc version 0.9.25 – Linux ARM hard float
Does it give the target architecture or the host architecture?
>
> Rationale, on Windows and Linux we can have both 32/64 bit version
>
> CL shows
> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
> On 32bits and
> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x64
> On 64bits
>
> This way, you can have makefile (or ./configure) working differently
> depending on the platform.
>
> Sounds reasonable?
Why not just use readelf or equivalent to detect the platform?
>
> Christian
Thomas
>
> P.S. here is how I use cl processor info with nmake:
>
> !if [$(CC) 2>&1 | find "x86" > nul] == 0
> CPU = i386
> !elseif [$(CC) 2>&1 | find "x64" > nul] == 0
> CPU = AMD64
> !elseif [$(CC) 2>&1 | find "Itanium" > nul] == 0
> CPU = IA64
> !elseif [$(CC) 2>&1 | find "ARM" > nul] == 0
> CPU = ARM
> !else
> CPU = i386
> !endif
>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] New tcc display info?, Christian Jullien, 2013/02/09
- Re: [Tinycc-devel] New tcc display info?,
Thomas Preud'homme <=
- Re: [Tinycc-devel] New tcc display info?, Christian Jullien, 2013/02/09
- Re: [Tinycc-devel] New tcc display info?, Thomas Preud'homme, 2013/02/09
- Re: [Tinycc-devel] New tcc display info?, grischka, 2013/02/09
- Re: [Tinycc-devel] New tcc display info?, Christian Jullien, 2013/02/10
- Re: [Tinycc-devel] New tcc display info?, grischka, 2013/02/10
- Re: [Tinycc-devel] New tcc display info?, Christian Jullien, 2013/02/10
- Re: [Tinycc-devel] New tcc display info?, grischka, 2013/02/12
- Re: [Tinycc-devel] New tcc display info?, Christian Jullien, 2013/02/10