Re: Delphi language support in CMake build system



eric.lemings@xxxxxxxxx wrote:
On Oct 20, 11:54 am, Bart <broersma.juda_ANTISP...@xxxxxxxxxx> wrote:
Delphi used to have a commandline compiler (in D3 it was called
dcc32.exe)

F:> type hello.pas
{$APPTYPE CONSOLE}
program hallo_world;
begin
writeln('Hello World');
end.

F:>dcc32 hello.pas
Delphi for Win32 Version 10.0 Copyright (c) 1983,97 Borland
International
hello.pas(8)
9 lines, 0.60 seconds, 10184 bytes code, 1377 bytes data.

F:>dir hello*

HELLO PAS 87 20-10-08 19:48 hello.pas
HELLO EXE 15.360 20-10-08 19:49 hello.exe

I'm not sure if this still applies to newer Delphi versions.

This example translates Delphi source directly into an executable.

Yes. And if it can do that, then the sanity check that you said CMake is looking for has obviously passed.

Does anyone have an example of translating/compiling the source for a
simple Delphi program into an intermediate representation before
"linking" the executable?

Toward what purpose?

What's the use case for a standalone DCU, not tied to any project?

I compile C and C++ projects all the time. There are two reasons I ever compile: I want an executable file, or I just want to see whether it builds. In the former case, I'm looking for a .exe or .dll file, and in the latter case, I'm looking for (a lack of) error messages and not for any file at all. I'm never looking for a .o file.

--
Rob
.



Relevant Pages

  • A funny yet crazy extreme test on Delphi 7 compiler
    ... See how Delphi compiles very huge source file! ... I use the command line tool dcc32 to ... A project with a major source file names TestCase.pas. ... Delphi can compile crazy functions with 999 parameters. ...
    (borland.public.delphi.non-technical)
  • Re: I really hate .NET especially inside Delphi
    ... Delphi.NET terms this is a package (yeah, yeah, I don't know why ... a BPL it will compile to a dll, ... Mainly because I couldn't get the output as I wanted it to be and I simply got used to the ease of namespaces and multi pass compiling in the time before Delphi learned .Net. ...
    (borland.public.delphi.non-technical)
  • Re: 64-bit Windows for AMD 64 is here...
    ... Indeed, but with no decent Win64 support in Delphi, only ... Pure waste of time and money IMHO, and I don't really buy the argument ... Yep, I can also compile a compiler with Delphi, and compile what I wish ...
    (borland.public.delphi.non-technical)
  • Re: Critical article on Borland and Free Pascal
    ... So does that compiler produce some kind of 64-bit Windows application, ... I do not know what are Borland's last statements about the coming Delphi ... > Borland embarked on a kamikaze mission after Delphi 5. ... > Testing had hardly been done at all, so when people tried to compile ...
    (comp.lang.pascal.delphi.misc)
  • Win32, Linux, .NET >> Where is this mess going to?
    ... how many Delphi developers are thinking about moving to M$ ... Visual Studio and C# rather then staying with Borland Delphi 2005? ... looks like Borland is doing more work for M$ then for their own products. ... but it could ONLY compile Win32 applications. ...
    (borland.public.delphi.thirdpartytools.general)