How to? Identify 64-bit and 32-bit TCC sessions...

May 24, 2010
855
0
Northlake, Il
First, I have a 64-bit machine, and I generally run TCC in 64-bit mode. However, as I'm sure everyone knows, most plugins only run in 32-bit TCC sessions, so if I want/need the services of many plugins I have to run 32-bit TCC sessions. Second, I have things set up so that the PID of every TCC session appears in its title bar. Now I'd like to do something similar for the mode - have something in the title bar that indicates whether a given TCC session is in 64- or 32-bit mode. Is there any way to achieve this goal?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Rex:
This is more a very far forward looking suggestion. Maybe the relevant variable's name should be _registersize (it really ought to be "_wordsize", as "word" is defined in the standards as the largest unit of a single storage access, but MS defined it long ago as 16b, and larger units have special names, like dword, lword, etc.). The value should be the number of bits in integer arithmetic registers. This name would never have to change when 128-bit or 256-b registers become available (not that more than 0.1% of all programs could be improved by such large register sizes).
 

rconn

Administrator
Staff member
May 14, 2008
12,367
150
Rex:
This is more a very far forward looking suggestion. Maybe the relevant variable's name should be _registersize (it really ought to be "_wordsize", as "word" is defined in the standards as the largest unit of a single storage access, but MS defined it long ago as 16b, and larger units have special names, like dword, lword, etc.). The value should be the number of bits in integer arithmetic registers.

The "%_x64" internal variable simply identifies that you're running the x64 version Take Command. It doesn't have anything to do with the CPU register size.
 
Similar threads
Thread starter Title Forum Replies Date
Gamegod Fixed TCC identify Chinese problems Support 30
S How to? Identify which monitor is active Support 5
S DESKTOP - identify current active ? Support 4
Peter Murschall Single-line Do-CMD is a bit uncooperative. Support 6
Joe Caverly VBEEP on 64-bit Support 3
vefatica SETP usually fails with a 32 bit process Support 4
rconn Dropping 32-bit support in Take Command & TCC? Support 14
dcantor How to? Can 32-bit TCC be run on a system with 64-bit TCMD and TCC installed? Support 6
T 32 and 64 bit simultaneous portable versions Support 2
vefatica Make FFIND a bit more friendly? Support 14
CWBillow Everything.exe - 64-bit? Support 8
S 32-bit Take Command v22 install for thumb drive Support 1
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
Joe Caverly SETP and 32-bit process Support 2
gworley How to? Take Command 20 64 bit vs 32 bit Support 1
mikea Documentation Consider expanding the docs for 'Everything' a bit Support 10
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
vefatica Can a subroutine return a 64-bit integer? Support 4
M 64-bit plugins? Support 1
M An oddity that's a little bit scary... Support 6
rconn News Take Command 16.03.54 32-bit installer Support 0
rconn News Take Command 16.03.54 32-bit installer fix Support 0
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
JohnQSmith Installing TCMD16 on 32 bit XP Support 12
D New 64-bit install goes to Program Files x86 Support 3
F How to install 64-bit after having installed 32-bit on Win7 Support 2
Dan Glynhampton Bad link to 64 bit RC1 download Support 0
M And oddity re the 32-bit TCC on a 64-bit system... Support 4
C Advantages of 32 or 64 bit TCMD in 64 bit Windows 7 Support 3
C How to determine if system is 32 or 64 bit? Support 5
M WAD A bit of strangeness related to Unicode-marked file not being Unicode Support 2
M A bit of a complaint regarding @FileDate and @FileTime Support 3
K_Meinhard Take Command v13 64-bit Support 9
K_Meinhard 64-bit installer Support 3
M Another bit of weirdness.... Support 0
M A little bit of strangeness with @Char... Support 3
J CTRL-C does not work on Windows 7 64-bit Support 3
S Take Command LE (32 bit) locking up several times a day Support 14
S 64-bit version use? Support 5
S TCMD 12 64-bit locking up frequently Support 7
rconn v12 Release Build test - 32-bit fixed Support 36
Ville 64-bit command line apps invisible in TCC Support 2
gschizas TaskDialog doesn't work in 64-bit Take Command Support 1
D Settings not writting to registry in XP (32 bit) Support 10

Similar threads