0

How can I implement a stack allocation method alloc() using assembly in Delphi? It isn't even exported from msvcrt.dll the way malloc/free is.

user15124
  • 299
  • 3
  • 8

1 Answers1

1

There is a functioning implementation of StackAlloc in the graphics32 library. This supports x86 and x64 targets.

I learned this from a websearch which took me here: How to use StackAlloc in x64?

The other well known implementation that I am aware of can be found in the Grids unit of the VCL.

Community
  • 1
  • 1
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490