From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 10 22:57:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F0AB16A492 for ; Wed, 10 Jan 2007 22:57:40 +0000 (UTC) (envelope-from chewy509@lycos.com) Received: from smail1.lycosmail.lycos.com (bos-mail-smail2.bos.lycos.com [209.202.208.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2ADB613C44C for ; Wed, 10 Jan 2007 22:57:39 +0000 (UTC) (envelope-from chewy509@lycos.com) Received: from bos-mail-wwl8.lycosmail.com (bos-mail-wwl8b.bos.lycos.com [10.124.64.88]) by bos-mail-smail2.lycosmail.com (8.13.6/8.9.1) with ESMTP id l0AMqmcF014662; Wed, 10 Jan 2007 17:52:48 -0500 Received: (from hanadmin@localhost) by bos-mail-wwl8.lycosmail.com (8.12.9/8.9.1) id l0AMw5es004625 for ; Thu, 11 Jan 2007 07:58:05 +0900 Content-Transfer-Encoding: 8bit X-Originating-IP: [210.11.58.16] From: "darran kartaschew" Organization: Lycos. Inc. Priority: Normal To: X-Mailer: Daum Web Mailer 1.1 Date: Wed, 10 Jan 2007 17:58:05 -0500 (EST) Message-Id: <20070110175805.HM.0000000000000GI@chewy509.bos-mail-wwl8.lycos.com> Errors-To: X-Hanmail-Attr: fc=1 X-Mailman-Approved-At: Thu, 11 Jan 2007 00:52:51 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: sbrk vs mmap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 22:57:40 -0000 > 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