Discussion:
Delphi supports inline assembler, so why not use Delphi ?
(too old to reply)
Skybuck Flying
2015-09-24 21:53:38 UTC
Permalink
Hello,

Maybe this is a strange question but here goes:

Why would not use Delphi for writing assembly language programs ?

Delphi support inlined assembler and assembler functions ! ;)

Bye,
Skybuck.
JJ
2015-09-24 23:22:15 UTC
Permalink
Post by Skybuck Flying
Hello,
Why would not use Delphi for writing assembly language programs ?
Delphi support inlined assembler and assembler functions ! ;)
Bye,
Skybuck.
I somewhat did that by stripping down the mandatory units such as System,
SysInit, etc.
So that there's no wasted code in the compiled binary.

The only problem is that I can't compile as device driver binary on the fly.
i.e. with proper PE header field values.
I had to patch it after the compilation.
dunno
2015-09-25 07:03:20 UTC
Permalink
Post by Skybuck Flying
Hello,
Why would not use Delphi for writing assembly language programs ?
I remember there were people who used Borland Pascal for this exact
purpose. They were excluding all libraries to make resulting executable
smaller. If I remember correctly, there was a possibility to recompile main
BP library to exclude almost everything (dummy EXE file was just few bytes
longer than dummy EXE file compiler and linked by MASM) and then use BP
compiler as assembler with some HLL functions, and some OOP support.
Post by Skybuck Flying
Delphi support inlined assembler and assembler functions ! ;)
If I were doing Pascal nowadays, I would either stick with FPC or (more
likely) move to Ada, specifically, GNAT compiler. I definitely wouldn't do
Windows-only compiler, which is what Delphi is. Would you like to try Ada?

P.S. I wonder if Virtual Pascal compiler is still alive.
Post by Skybuck Flying
Bye,
Skybuck.
--
dunno
dunno
2015-09-25 07:05:53 UTC
Permalink
Post by dunno
Post by Skybuck Flying
Hello,
Why would not use Delphi for writing assembly language programs ?
I remember there were people who used Borland Pascal for this exact
purpose. They were excluding all libraries to make resulting executable
smaller. If I remember correctly, there was a possibility to recompile main
BP library to exclude almost everything (dummy EXE file was just few bytes
longer than dummy EXE file compiler and linked by MASM) and then use BP
"...than dummy EXE file *compiled* and linked by MASM..."
Post by dunno
compiler as assembler with some HLL functions, and some OOP support.
Post by Skybuck Flying
Delphi support inlined assembler and assembler functions ! ;)
If I were doing Pascal nowadays, I would either stick with FPC or (more
likely) move to Ada, specifically, GNAT compiler. I definitely wouldn't do
Windows-only compiler, which is what Delphi is. Would you like to try Ada?
P.S. I wonder if Virtual Pascal compiler is still alive.
Post by Skybuck Flying
Bye,
Skybuck.
--
dunno
Skybuck Flying
2015-09-25 09:51:43 UTC
Permalink
I see an advantage to using Delphi for assembler.

Test programs can be written in high language level ! ;)

Should make it easier to test assembler routines ?! ;)

Bye,
Skybuck =D
dunno
2015-09-27 05:39:59 UTC
Permalink
Post by Skybuck Flying
I see an advantage to using Delphi for assembler.
I don't see such advantage. Seriously, try something that clearly do have a
future. Delphi is already a past.
Post by Skybuck Flying
Test programs can be written in high language level ! ;)
Should make it easier to test assembler routines ?! ;)
Bye,
Skybuck =D
--
dunno
Loading...