From owner-freebsd-hackers Sun Oct 22 12:17:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 8395737B4C5 for ; Sun, 22 Oct 2000 12:17:33 -0700 (PDT) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.9.3) with ESMTP id e9MJO8U07801; Sun, 22 Oct 2000 21:24:08 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "G. Adam Stanislav" Cc: hackers@FreeBSD.ORG Subject: Re: Dynamic memory allocation from non-C code In-Reply-To: Your message of "Sun, 22 Oct 2000 14:12:41 CDT." <20001022141241.A263@whizkidtech.net> Date: Sun, 22 Oct 2000 21:24:08 +0200 Message-ID: <7799.972242648@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20001022141241.A263@whizkidtech.net>, "G. Adam Stanislav" writes: >This is probably a stupid question, but I have not been able to figure it >out on my own: > >How do I dynamically allocate/free memory from programs that do not use >the C library (e.g., assembly language programs)? If you don't link with the C library, you will need to use the sbrk(2)/brk(2) interface to extend your heap. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message