flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
f0dder 12 Aug 2006, 10:51
There tends to be a bit better chance of the stack being in the CPU cache because, well, the stack is used all the time. On the other hand, the stack is somewhat limited in size, so you shouldn't allocate too large objects there (I tend to go heap once I need more than a few kilobytes).
Stack variables have the advantage of being easier to make thread-safe than use of global variables. But of course you can HeapAlloc and save pointers in stack variables. |
|||
![]() |
|
Defoc8 13 Aug 2006, 13:12
thanks - i dont know anything about the cache, last time i coded in assembler
there was no instruction or data cache..and no fpu/mmu :p ..will probably need to hunt out some docs on modern processor architecture.. its all very interesting, if a little confusing..i think i much prefered 68k assembler ![]() |
|||
![]() |
|
donkey7 13 Aug 2006, 13:21
http://www.agner.org/optimize/ - here are many useful docs
|
|||
![]() |
|
0x4e71 13 Aug 2006, 14:27
Also worth reading this presentation by Felix von Leitner, see the bit about alloca vs malloc/new.
http://www.fefe.de/dietlibc/diet.pdf Quote:
Me too ![]() But then again x86's have advantages too, they come with GHz+ clock speeds at dirt cheap prices ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.