Re: Unrolling FASM source code



Betov wrote:

> With Assemblers able to do it all without any Linker, like
> RosAsm, the "Double shot" is useless. So, the call is, simply:

Even with assemblers that require linkers (ie, MASM), you can still do the
direct "call dword ptr [imp_MessageBoxA@16]" way - and even with INVOKEs,
it's just about setting up the correct prototypes. I think hutch-- even
included a tool with his masm32 package that creates these imports. Last
time I checked, it was not the default though.

> Since the oncoming of RosAsm, most Assemblers try to do it
> this shortest and simpler way.

Once you call an API "many" times, the "call do_jmp_import" way becomes
shorter... but well, who cares really, it's not like it's going to mean a
lot even in applications that do a LOT of calls :)


.



Relevant Pages

  • Re: Home brew Z80 CP/M computer
    ... nice pile of assemblers and linkers. ... But it doesn't say what the SLR tools do with it. ... The thing that I absolutely _LOVED_ about the SLR tools was how well they dealt with external references. ... Reading between the lines, it was easy enough to figure out that Steve had defined a stack machine to do the address calculations, and embedded that into the linker. ...
    (comp.os.cpm)
  • Re: Unrolling FASM source code
    ... At launch time, the OS reads the .Import Section, and it ... With Assemblers working with a Linker, ... RosAsm, ...
    (alt.lang.asm)
  • Re: potable sprintf for assemblers
    ... >> to allow use of libraries in just this sense. ... > them include a Linker, but, eventually... ... > 2) Many of the actual Assemblers are perfectly ... referencing these subroutines, you can save yourself a lot of time ...
    (alt.lang.asm)
  • Re: My view on this "Is blah an assembler"
    ... >what in hell we're talking about! ... Sigh...I hate to go on but I guess I forgot to mention the linker! ... Some assemblers incorporate the assembler with the linker ...
    (alt.lang.asm)
  • Re: Unrolling FASM source code
    ... > Betov wrote: ... >> With Assemblers able to do it all without any Linker, ... > Even with assemblers that require linkers, you can still do ... Shorter in Bytes counts? ...
    (alt.lang.asm)