Re: [fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do I *personally*, specifically need to do to ensure that a native Windows 64-bit build winds up on the FPC

2022-01-13 Thread Alexander Grotewohl via fpc-devel
32bit on Windows 64-bit uses Wow64.. which has a bit of overhead as an emulation layer. I believe it's the same one they use for ARM64 too. I can only guess at how optimally it works performance-wise, but compiling a couple thousand-liner utils was annoying. You could (at least on the machine I

Re: [fpc-devel] function GetCurrentThreadId vs variable ThreadID

2021-03-28 Thread Alexander Grotewohl via fpc-devel
looks like threadid is assigned to getcurrentthreadid in an initthread() function in thread.inc. but: getcurrentthreadid looks to be mapped to a changeable thread manager which is why that might seem weird in the docs.. -- Alexander Grotewohl https://dcclost.com ___

Re: [fpc-devel] Might need some help with this one

2020-11-27 Thread Alexander Grotewohl via fpc-devel
"break" is a windows built-in. explains the first attempt. -- Alexander Grotewohl https://dcclost.com From: fpc-devel on behalf of Tomas Hajny via fpc-devel Sent: Friday, November 27, 2020 11:16:26 AM To: FPC developers' list Cc: Tomas Hajny Subject: Re: [fpc-

Re: [fpc-devel] Compiler message colour scheme

2020-11-22 Thread Alexander Grotewohl via fpc-devel
I would probably do something like this: const ansi_colors: array[0..7] of char = ('0', '4', '2', '6', '1', '5', '3', '7'); procedure PrintColor(fg, bg: byte; s: string); var tmp: string; begin tmp:=#27+'[0;3'+ansi_colors[fg]+';4'+ansi_colors[bg]+'m'+s+#27+'[0m'; writeln(tmp); end; begin PrintCo