Re: [fpc-devel] Masm

2014-11-08 Thread Dmitry Boyarintsev
On Fri, Nov 7, 2014 at 11:05 PM, Adriaan van Os wrote: > I saw that and wondered if nasm can be used with FPC on Mac OS X. What is > the status of -Amacho, by the way ? > > Stalled. The same place is was 4-5 years ago. i386 only (the only hardware I had then) and no PIC support Not sure, if I'll

Re: [fpc-devel] Masm

2014-11-08 Thread Adriaan van Os
Tomas Hajny wrote: On Fri, November 7, 2014 14:35, Adriaan van Os wrote: . . I still have to investigate the internal error 200602232. Have you tried Pierre's suggestion of testing it with the external linker Yes, that was the first I tried. No success. I am now experimenting with LINK.EXE

Re: [fpc-devel] Masm

2014-11-08 Thread Tomas Hajny
On Fri, November 7, 2014 14:35, Adriaan van Os wrote: . . > I still have to investigate the internal error 200602232. Have you tried Pierre's suggestion of testing it with the external linker (-Xe)? However, the Sergei's note about incomaptible use of sections between MS VCC and FPC should be pr

Re: [fpc-devel] Masm

2014-11-08 Thread Adriaan van Os
Dmitry Boyarintsev wrote: On Fri, Nov 7, 2014 at 12:55 PM, Adriaan van Os > wrote: (to my astonishment Xcode even installs nasm). Just in case, you find this interesting: I saw that and wondered if nasm can be used with FPC on Mac OS X. What is the status of -Ama

Re: [fpc-devel] Masm

2014-11-08 Thread Adriaan van Os
I can not make anything of the Visual C++ produced .obj with the Microsoft provides docs. If that isn't typically Microsoft ... How to corrupt any standard by "slightly modifying" it I will look further to dig up some meaningful info. Amusingly, Microsofts own SDK dumpbin tool says Micros

Re: [fpc-devel] Masm

2014-11-07 Thread Dmitry Boyarintsev
On Fri, Nov 7, 2014 at 12:55 PM, Adriaan van Os wrote: > (to my astonishment Xcode even installs nasm). > > Just in case, you find this interesting: http://forum.nasm.us/index.php?PHPSESSID=sl1i7lf3upjgenov75agnkui56&topic=1972.msg8738#new ___ fpc-deve

Re: [fpc-devel] Masm

2014-11-07 Thread Adriaan van Os
Florian Klaempfl wrote: Am 07.11.2014 10:35, schrieb Adriaan van Os: Anybody with hands-on experience compiling with FPC for MASM, including the RTL ? The FPC compiler option is there. NASM ist probably supported better and should be able to generate a lot of different object file types. Th

Re: [fpc-devel] Masm

2014-11-07 Thread Florian Klaempfl
Am 07.11.2014 10:35, schrieb Adriaan van Os: > Anybody with hands-on experience compiling with FPC for MASM, including > the RTL ? The FPC compiler option is there. NASM ist probably supported better and should be able to generate a lot of different object file types. ___

Re: [fpc-devel] Masm

2014-11-07 Thread Adriaan van Os
Sergei Gorelkin wrote: Your header looks like a BigObjHeader Ah, that's interesting, thanks. This means that the object is prepared to handle relocation that are not in the 4-byte range... A feature that Free Pascal indeed does not support IIRC... There is probably an option somewhere to

Re: [fpc-devel] Masm

2014-11-07 Thread Sergei Gorelkin
07.11.2014 17:01, Pierre Free Pascal пишет: The is no COFF magic. the first 2 bytes indicate normally a MACHINE type. The files I produced start etiher by: 0x8664 indicating a x86 coff header or 0x014c indicating a i386 coff header. Nevertheless, 0x is also listed as IMAGE_FILE_MACHIN

Re: [fpc-devel] Masm

2014-11-07 Thread Pierre Free Pascal
age d'origine- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Adriaan van Os > Envoyé : vendredi 7 novembre 2014 13:10 > À : FPC developers' list > Objet : Re: [fpc-devel] Masm > > > But if

Re: [fpc-devel] Masm

2014-11-07 Thread Adriaan van Os
But if the formats are the same, what is the cause of the error message " Illegal COFF Magic" when trying to statically link with FPC a VCC produced .obj or .lib ? I found the COFF docs here and here the Visual C

Re: [fpc-devel] Masm

2014-11-07 Thread Pierre Free Pascal
epascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Adriaan van Os > Envoyé : vendredi 7 novembre 2014 11:25 > À : FPC developers' list > Objet : Re: [fpc-devel] Masm > > Marco van de Voort wrote: > > In our previous episode, Adriaan van Os said: > &g

Re: [fpc-devel] Masm

2014-11-07 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: It is rather unfortunate that fpc can only link OMF, not COFF on Windows (I read on some previous posts that it is the other way round, but according to

Re: [fpc-devel] Masm

2014-11-07 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > It is rather unfortunate that fpc can only link OMF, not COFF on Windows (I > read on some previous > posts that it is the other way round, but according to >