tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] New tcc display info?


From: Christian Jullien
Subject: [Tinycc-devel] New tcc display info?
Date: Sat, 9 Feb 2013 16:06:31 +0100

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

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?

Christian

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]