Date: Wed, 10 Jan 2007 17:58:05 -0500 (EST) From: "darran kartaschew" <chewy509@lycos.com> To: <freebsd-hackers@freebsd.org> Subject: Re: sbrk vs mmap Message-ID: <20070110175805.HM.0000000000000GI@chewy509.bos-mail-wwl8.lycos.com>
next in thread | raw e-mail | index | archive | help
> Is there a particular reason you have to use assembly and not C? The whole application is in assembly (some of us still enjoy coding in assembly), and rather not link to libc if I don't have to. (There are about 5 syscalls for the entire application, porting between each OS's hasn't been that hard). The app in question, also has been ported to Linux, Windows x64, Solaris and now FreeBSD, and the mmap() call is the last one to get working... > You can call C functions from assembly and vice versa. > You also forgot to include > one of MAP_SHARED or MAP_PRIVATE in your flags. Thanks, I'll try including one of the those flags. Darran _________________________________________________________________ [1]Free Movies 100's of Free Feature Length Films - Meet Friends, Watch Movies & Win! References 1. http://cinema.lycos.com/?if_Event=mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070110175805.HM.0000000000000GI>