mailing list of musl libc
 help / color / mirror / code / Atom feed
* How to setup pre-allocated heap stack space?
@ 2014-08-05 20:26 Weiming Zhao
  2014-08-05 20:47 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Weiming Zhao @ 2014-08-05 20:26 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

Hi,

 

In musl's crt1.c , I want to let libc to use preallocated heap and stack.

I can set the SP register in crt1. But how do I specify the base address of
heap? So malloc will starts from there.

 

Thanks,

Weiming


[-- Attachment #2: Type: text/html, Size: 2193 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-05 21:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-05 20:26 How to setup pre-allocated heap stack space? Weiming Zhao
2014-08-05 20:47 ` Rich Felker
2014-08-05 20:59   ` Weiming Zhao
2014-08-05 21:04     ` Rich Felker
2014-08-05 21:07       ` Weiming Zhao

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).