Reputation: 7248
Is the *.dcu files in delphi xe2 for firemonkey application are independent from platforms. here. for both 32bit and 64 bit and other operating systems.
If so how is the dcu files are designed. is it something similar to the previous(delphi 1-delphi xe) or something like an intermediate language(like java or .net)
is this new dcu going to make the decompilation of dcu files easier.
The main intention of this question is to know some details about the pros and cons about the new dcu files for firemonkey.
Upvotes: 1
Views: 1169
Reputation: 26371
To make it somewhat more insightful, some background info:
DCU's are more or less a combination of the following parts
I don't know if all these 4 are separate sections or that they are interleaved. My guess is that 1+2 are combined (since that allows more generic routines in the linker) and there is a "rest" with 3+4+5 and maybe some other metadata.
Since headers might depend on OS specific types and symbols in system unit and OS specific units, even in theory only the most self contained units could be crossplatform. Probably not worth the effort to bother.
As far as decompilation goes, it is pretty much the same as the general decompilation problem, with a few twists:
In short, it is probably not a bit easier than earlier Delphi compilers or even a static lib + header files of a random C++ compiler.
Upvotes: 3
Reputation: 7489
Is the *.dcu files in delphi xe2 for firemonkey application are independent from platforms. here. for both 32bit and 64 bit and other operating systems.
No they are not; Delphi XE2 generates different .dcu files for different platforms, and .dcu files for each platform are created in separated folders.
Upvotes: 9