From owner-freebsd-embedded@FreeBSD.ORG Wed Dec 16 11:20:46 2009 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 007951065670 for ; Wed, 16 Dec 2009 11:20:46 +0000 (UTC) (envelope-from arnold.robbins@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 9658B8FC12 for ; Wed, 16 Dec 2009 11:20:45 +0000 (UTC) Received: by yxe1 with SMTP id 1so857203yxe.3 for ; Wed, 16 Dec 2009 03:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ZT1BSKDU8iF5SeZRCYoH3osS4sId7eULn0QjsP7FngM=; b=dkBZdEHVRR2F+rpAzSn5a4R2E4EGxaTVa3lCpBmkbumX1kVqMZmqFqY4i7YIuzEspY mIOAu9VT9Ms1GZghG69HbYWK8snRtS0XnUcbo5OXv2HneEIACyWBA6g+Bfk8ZEQkz29e AxIp66IDN53ap1DCBnCGVbsVNmQrGECofe1f8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nSlJ3iRJBaFIECq7LlCUDF3gnyoFnTibS/0pioGnkT7f4ggdFRpiBSxEMeOCju3pFJ cXIMZ1xFZ+1BqKckGFAXbXMt+fnPwIBoNJBuy+iVwgJmTIU37CIuJtGFVN6f9jTTXV4P YWGYmDoxghbw/3+nH/Q36xsHV8AlTEHK4+fgQ= MIME-Version: 1.0 Received: by 10.101.7.8 with SMTP id k8mr1309530ani.23.1260962444381; Wed, 16 Dec 2009 03:20:44 -0800 (PST) In-Reply-To: References: <8050e5fe0912150140p22fff6bfh9960b44a4436801b@mail.gmail.com> <4B27B5AF.1010304@gmail.com> <3564069F-2FA3-44BC-B7E2-BBC50E576E08@gmail.com> <20091216102251.41049714@ernst.jennejohn.org> Date: Wed, 16 Dec 2009 13:20:44 +0200 Message-ID: <8050e5fe0912160320nec87c74p5d93e65eae0f174a@mail.gmail.com> From: Arnold Robbins To: Olivier Gautherot Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Arnold@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: cross compiling for freebsd from windows? X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2009 11:20:46 -0000 FreeBSD will be running on an embedded system. Apps will have two components: one on the Windows side and one on the FreeBSD side and they will communicate with each other. The target audience for whom we want cross-compilation is windows developers who are used to living inside visual studio and/or eclipse and we'd like to make it easier to do all the development (and debugging, if possible) from within one environment. There is lots of prior art for this sort of thing in the Linux world, nor am I a Unix newbie. But it looks like it hasn't really been done before for FreeBSD, and I'd prefer to save myself as much pain as possible. :-) Virtualization is indeed thecurrent solution, but it'd be nice to bring things even closer to the developer if possible. Thanks to everyone who replied! Arnold On Wed, Dec 16, 2009 at 12:40 PM, Olivier Gautherot wrote: > Hi all, > > > >> Has anyone set up cross-compilers / cross-debuggers on Windows >> (including >> > >> using Cygwin) to compile applications for FreeBSD and debug them from >> > >> Windows? If so, can you please send me any information, links, etc.? >> > > why the effort of making cross compiling tools ? if one need to >> develop application for given operating system, >> > > isn't more convenient to use the os as primary incubator for that >> software? + using virtualization is giving you false >> > > idea of how your app and underline os perform and interact with each >> other. >> > >> > Seriously? What's your idea of the issue with virtualisation? I don't >> understand. I always thought that you were just getting an installation, but >> using a software hypervisor instead of bare metal. >> > >> >> The OS and application will run considerably slower in a virtual machine. >> The user shouldn't assume that the poor performance is due to the OS and >> application themselves. >> > > To try and summarize the discussion, virtualization is slower, that's a > fact - although it is far from unworkable and having a native environment > also eases the task (including debuggers). > > In Arnold's case, performance is probably irrelevant as cross-compiling, > which was the original issue, does not assume running the app on the > compiling host. The real issue is whether the compiler has been ported to > Windows and which libraries Arnold needs. As long as the compiler is not > ported the latter does not matter either... > > Arnold, what type of app do you want to compile on your host? > > > Olivier Gautherot > olivier@gautherot.net > Cel:+56 98 730 9361 > www.gautherot.net > http://www.linkedin.com/in/ogautherot > > -- Aharon (Arnold) Robbins Nof Ayalon, ISRAEL