<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 16, 2016 at 5:32 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><p>Am 16.01.2016 04:45 schrieb "silvioprog" <<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>>:<br>
><br>
> Hello,<br>
><br>
> Can I compile MASM code (or files) in FPC? If so, how to declare some MASM directives like .code, .data?, .const etc.?:</p>
</span><p>You can't. FPC's assembler readers only support a default syntax (usually that what GNU as supports by default) and on x86 platforms also the Intel syntax.<br>
If you want to use MASM you need to assemble it yourself and then $link the resulting file in a unit which also provides access to the functions in the object file using "external".</p></blockquote></div><div class="gmail_extra">Hm... I already use in that way (however as shared lib), the only cons is that I can't debug it using Lazarus IDE. Anyway, thanks for replying! :-)</div><div class="gmail_extra"><br></div>--<br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>