Board index » delphi » Compiler options - after compile

Compiler options - after compile

Is there any way to find out what the compiler options were
with just the executable?

Most of the programs I would be looking at wouldn't have been
compiled with debug information.

Some of the programs would have been compiled with BP6 but most
with BP7.

My goal is to be able to tell if our programs out in the field
match what we have in house. The only way we can be sure is to
compare file size, but if we compile with different compile
options we get different file sizes.

Let me know if you have any ideas.

Thanks and have a good weekend!

 

Re:Compiler options - after compile


Why not include a version and date information
in all of your programs?

Example:

Begin
  WriteLn ('PROGRAM XXX   -  Version: 3.1.02 - Build: 17.4.98');
End.

or only visible with a hex-editor:

Procedure Rem(S: String); Inline($58/$58); { pop ax / pop ax }
{ Puts a string into the CODE-segment }

Begin
  Rem('PROGRAM XXX   -  Version: 3.1.02 - Build: 17.4.98');
End.

or with the command-line switch /V:
Begin
  If (Pos('/V',String(Ptr(PrefixSef,$80)^)) > 0) Or
     (Pos('/v',String(Ptr(PrefixSef,$80)^)) > 0)
     Then
       Begin
         WriteLn ('PROGRAM XXX   -  Version: 3.1.02 - Build: 17.4.98');
         Halt;
       End;
End.

Quote
Allen H Brainerd wrote:
> My goal is to be able to tell if our programs out in the field
> match what we have in house. The only way we can be sure is to
> compare file size, but if we compile with different compile
> options we get different file sizes.

Other Threads