I'm aware that TP7/BP7 pascal programs can call external assembler
routines. But is the opposite possible? Meaning, can assembler
programs call routines in precompiled pascal units? C and assembly
have this relationship (you can call C library routines from asm, and
asm libs from C) but was curious if TP7+Tasm had this same
relationship.
I'm aware that TP7/BP7 pascal programs can call external assembler
routines. But is the opposite possible? Meaning, can assembler
programs call routines in precompiled pascal units? C and assembly
have this relationship (you can call C library routines from asm, and
asm libs from C) but was curious if TP7+Tasm had this same
relationship.
On 2011-02-23, Jim Leonard <mobyga...@gmail.com> wrote:
I'm aware that TP7/BP7 pascal programs can call external assembler routines. But is the opposite possible? Meaning, can assembler
programs call routines in precompiled pascal units? C and assembly
have this relationship (you can call C library routines from asm, and
asm libs from C) but was curious if TP7+Tasm had this same
relationship.
Yes. Because of the same reason. Both C and Pascal are translated to assembler, so in the compiled translation assembler already calls pascal/C routines.
On Feb 23, 1:31 pm, Marco van de Voort<mar...@turtle.stack.nl> wrote:
On 2011-02-23, Jim Leonard<mobyga...@gmail.com> wrote:
I'm aware that TP7/BP7 pascal programs can call external assembler
routines. But is the opposite possible? Meaning, can assembler
programs call routines in precompiled pascal units? C and assembly
have this relationship (you can call C library routines from asm, and
asm libs from C) but was curious if TP7+Tasm had this same
relationship.
Yes. Because of the same reason. Both C and Pascal are translated to
assembler, so in the compiled translation assembler already calls pascal/C >> routines.
What I meant was: From my assembler program, can I link in routines
from precompiled pascal units?
I'm beginning to think not, but would like confirmation either way.
On 2011-02-23 21:43, Jim Leonard wrote:
What I meant was: From my assembler program, can I link in routines
from precompiled pascal units?
I'm beginning to think not, but would like confirmation either way.
No, as TPU's contain, in essence, unlinked .OBJ code + separate
relocation tables. Next to that, Borland never disclosed the format of
TPU files, and all but he simplest Pascal code uses code from system.tpu.
On Feb 23, 1:31 pm, Marco van de Voort <mar...@turtle.stack.nl> wrote:
On 2011-02-23, Jim Leonard <mobyga...@gmail.com> wrote:
I'm aware that TP7/BP7 pascal programs can call external assembler
routines. But is the opposite possible? Meaning, can assembler
programs call routines in precompiled pascal units? C and assembly
have this relationship (you can call C library routines from asm, and
asm libs from C) but was curious if TP7+Tasm had this same
relationship.
Yes. Because of the same reason. Both C and Pascal are translated to
assembler, so in the compiled translation assembler already calls pascal/C >> routines.
What I meant was: From my assembler program, can I link in routines
from precompiled pascal units?
I'm beginning to think not, but would like confirmation either way.
{ whatever makes code in your Pascal units available }
begin
ASM
{ what you have in ASM, tweaked }
END
end.
Sysop: | Nelgin |
---|---|
Location: | Plano, TX |
Users: | 513 |
Nodes: | 10 (1 / 9) |
Uptime: | 00:21:10 |
Calls: | 8,291 |
Calls today: | 4 |
Files: | 15,520 |
Messages: | 928,878 |