Archive

Posts Tagged ‘CodeGear’

Delphi 2009 hidden compiler switch?

April 1st, 2009

This morning while debugging a statistical ichthyo-parser I stumbled upon what looked like a Delphi 2009 compiler bug: the compiler was outputting gibberish ASM opcodes… But after further investigations, it appeared this wasn’t completely gibberish, but that it was (somewhat) correct MSIL bytecode!

What’s more, a quick hexadecimal examination of dcc32.exe yelded that this MSIL codegen looks like it can be forced by using an undocumented command-line compiler switch: -af

The resulting exe won’t run because it’s a mismatch of Win32 headers and MSIL bytecode… What do you think?
Did CodeGear plan supporting unmanaged code in managed executables or managed code in native executables?

Update: here is a screenshot of the switch in action.

News , , , , ,

Peer support forum

March 3rd, 2009
Comments Off

I’ve opened a forum for SamplingProfiler, destined for peer support and bug reports:

http://delphitools.info/forums/

I don’t have any previous experience with freeforums.org as a host, but I don’t expect the traffic to be huge, so it’ll probably be good enough.
Forums are now hosted locally.
Another channel through which you can reach me would be via posting in the CodeGear newsgroups.

News , , , ,