flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > How does malloc() look like in assembly?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 17 Nov 2014, 04:41
system error wrote:
... "rb 16*1024*1024" thingy. It sent me that "out of memory" exception without the arithmetic.
You need to give more memory to fasm when you assemble something like that. fasm needs to allocate all that space (16MB) internally.

Also if you put initialised data or code after your 16MB fixed allocation then you will have a very huge and bloated exe file.
Post 17 Nov 2014, 04:41
View user's profile Send private message Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 670
system error 17 Nov 2014, 05:37
revolution wrote:
system error wrote:
... "rb 16*1024*1024" thingy. It sent me that "out of memory" exception without the arithmetic.
You need to give more memory to fasm when you assemble something like that. fasm needs to allocate all that space (16MB) internally.

Also if you put initialised data or code after your 16MB fixed allocation then you will have a very huge and bloated exe file.


yeah, I am aware of that. I think codebase's example is just for illustrative purpose.
Post 17 Nov 2014, 05:37
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.