home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 148 
 Marco van de Voort to All 
 Re: ASM + Pascal calling question 
 24 Feb 11 13:05:56 
 
13:05:56 GMT)
b7c2cae9
From: Marco van de Voort 

On 2011-02-24, Robert AH Prins  wrote:
> 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.

Hmm, yes, linking might be a problem.

I can vaguely remember there was a tpu2obj on simtel. Never tried that route
though. Considering its date (1988) it is probably for very old  TPs.

Other then that, maybe link it to an overlay on a fixed address and try to
load that? Still not an easy solution.

--- Internet Rex 2.31
 * Origin: The gateway at Omicron Theta (1:261/20.999)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca