Tag: delphi
May 31, 2013
compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, …
I was reading the source code of the FastMM4 and this short function came to my eyes. function GetThreadID: Cardinal; {$ifdef 32Bit} asm mov eax, FS: end; {$else} begin Result …
April 22, 2013
64 bit, assembly language, bug fixes, code, compiler, delphi, implementation, interpreter / compiler, optimization, programming languages, technical, tricks, windows
I came across a very strange problem when I tried to use Copy function in Delphi XE3. The Copy function behaves differently for string when compiled into 32bit and 64bit using Delphi …
I have posted a question on stackoverflow.com and it got answered within a few minutes. Then I realized how stupid this bug was. I have a Delphi project that was …
In , the performance comparison over floating point optimization regarding to different configurations for Delphi 2007 and XE3 is presented. We can see that Delphi 2007 produces quite nice …