Re: Introducing "f0dder.lib" and "f0dder.inc" for MASM.





Donkey wrote:
> >
> Nope, they have not changed it in later versions, only one model
> directive per program or you get error A4011.

But the issue isn't memory model. It's calling convention. Unless I'm
missing something, somewhere, you can set the calling convention on a
routine by routine basis. Indeed, if I understand the argument
correctly, this is what everyone is suggesting be done to the MASM32
header files. The same trick can apply to user-written routines, no?

For example, HLA's MASM output always sets the memory model to "flat,
syscall". However, by default HLA uses the Pascal calling convention.
Now it may be more *inconvenient* to have to set up all the prototypes
to use a different call, and that would be a valid argument for making
the change to the MASM32 header files, but I still don't see this as a
"bug" or anything like that, just a poor design decision.

As to the issues concerning sleep(0) and other stuff appearing
throughout this thread, I'm assuming that such comments are describing
a completely *different* problem and, not understanding the background
issues, I'm not in a position to comment. For that matter, I'm not even
paying a whole lot of attention to this whole thread, so my
understanding of the problem could be way off, anyway.
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: Introducing "f0dder.lib" and "f0dder.inc" for MASM.
    ... It's calling convention. ... > routine by routine basis. ... The issue isn't memory model, but the ".model" directive sets the ... A single post like this is, IMO, enough to ...
    (alt.lang.asm)
  • Re: Logic in Schools
    ... against "rote and routine", and for understanding and analysis. ... This is supposedly with respect to European and Asian ideals. ...
    (sci.math)
  • Re: unresolved external symbol __ftol2
    ... I had this project that used FDK (framemaker dev kit) ... Now I am using FDK 7.2 libraries and header files, ... If the original application was created with a different compiler, ... it offered that routine as a library routine and it is not offered with ...
    (microsoft.public.vc.mfc)
  • Re: Different Resampling Rates for Segments of a Sound File
    ... fix it until I gain a better understanding of the code. ... causes the routine to use the first ratio throughout the entire file, ... instead of applying a different one from segment to segment. ...
    (comp.dsp)
  • Re: Introducing "f0dder.lib" and "f0dder.inc" for MASM.
    ... missing something, somewhere, you can set the calling convention on a routine by routine basis. ... A relatively minor issue and one that is not likely to cause any problems since most people will be using STDCALL anyway. ... However, since it came from f0dder, Hutch has decided to ignore the issue completely and attack the source in the same way Rene does when the suggestion comes from you, Hutch or myself. ... For that matter, I'm not even paying a whole lot of attention to this whole thread, so my understanding of the problem could be way off, anyway. ...
    (alt.lang.asm)

Loading