Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-02

Linking question..

5 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matt Emson

Does anybody on the list (Florian, Peter, Sebastian?! etc) know if it's possible to link A FPC routine (and *.Obj or something) to a Delphi exe?? I remember doing it with Turbo C and Turbo Pascal, but is it possible now? I'd be using Delphi 5.0 and FPC 1.02 for Win32.

Failing that, anyone got any ideas how to implement FPC's ability to use Exported Variables from a DLL?! I'll resort to assembler if I have to ;)

This relates to Allegro by the way.. I'm exporing a few avenues before rewriting the DLL wholesale !

Thanks..

Matt

Reply by email

Jonas Maebe
to Matt Emson
Matt Emson wrote
Does anybody on the list (Florian, Peter, Sebastian?! etc) know if it's possible to link A FPC routine (and *.Obj or something) to a Delphi exe?? I remember doing it with Turbo C and Turbo Pascal, but is it possible now? I'd be using Delphi 5.0 and FPC 1.02 for Win32.

I don't know whether it's possible, you if you have a win32 version of masm, you could maybe try to use -Amasm to generate obj files.

Jonas

Reply by email

Pierre Muller
to Jonas Maebe

At 09:23 14/02/01 , vous avez écrit:

Show quoted text 11 lines
On Tue, 13 Feb 2001, Matt Emson wrote: > Does anybody on the list (Florian, Peter, Sebastian?! etc) know if it's possible > to link A FPC routine (and *.Obj or something) to a Delphi exe?? I remember > doing it with Turbo C and Turbo Pascal, but is it possible now? I'd be using > Delphi 5.0 and FPC 1.02 for Win32. I don't know whether it's possible, you if you have a win32 version of masm, you could maybe try to use -Amasm to generate obj files.

Sorry, but the -Amasm output is broken in 1.0.4 compiler, I will try to fix it!
Also the -Atasm seems broken because it uses locals with @@ prefix also for data variables, but tasm
only allows locals to be inside the same local procedure.

Can someone tell me if this is also the case for masm ?

By the way, is there a free version of masm available from microsoft or some clone?

Reply by email

Sebastian Günther
to Pierre Muller
Pierre Muller wrote
By the way, is there a free version of masm available from microsoft or some clone?

I think a more or less free one is available as part of the Win9x DDK? (Device Developer Kit)
At least it has been once, when 3DNow! support has been added to MASM.

- Sebastian

Reply by email

Peter Vreman
to Pierre Muller: At 09:23 14/02/01 , vous avez écrit: Sorry, but the -Amasm output is broken in 1.0.4…
you wrote 26 lines
At 09:23 14/02/01 , vous avez écrit: >On Tue, 13 Feb 2001, Matt Emson wrote: > > > Does anybody on the list (Florian, Peter, Sebastian?! etc) know if > it's possible > > to link A FPC routine (and *.Obj or something) to a Delphi exe?? I > remember > > doing it with Turbo C and Turbo Pascal, but is it possible now? I'd be > using > > Delphi 5.0 and FPC 1.02 for Win32. > >I don't know whether it's possible, you if you have a win32 version of >masm, you could maybe try to use -Amasm to generate obj files. Sorry, but the -Amasm output is broken in 1.0.4 compiler, I will try to fix it! Also the -Atasm seems broken because it uses locals with @@ prefix also for data variables, but tasm only allows locals to be inside the same local procedure. Can someone tell me if this is also the case for masm ? By the way, is there a free version of masm available from microsoft or some clone?

nasm with .obj output. -Anasmobj

Peter

Reply by email