EmbeddedRelated.com
Forums

Seeking Operating System abstraction Layer

Started by Baron Samedi January 22, 2008
On Jan 22, 2:52 am, Baron Samedi <Papa.Legba....@gmail.com> wrote:
> hi, > > I am seeking an Operating System Abstraction Layer which will easily > let me port my code to Windows, Linux and VxWorks. It should > preferably be free, or at least cheap. > > After lots of goggling, the only thing that looks anywhere near it to > it is the old NASA OSAL, but that is incomplete and seems to be > abandoned (even email is bouncing) .
abandoned? OSAL had a release in Oct 2007. The whole idea of open source is that others contribute to make it better. If you or your company can't contribute, then it is best to purchase a commercial product.
On Jan 22, 4:52=A0am, Baron Samedi <Papa.Legba....@gmail.com> wrote:
> hi, > > =A0 I am seeking an Operating System Abstraction Layer which will easily > let me port my code to Windows, Linux and VxWorks. It should > preferably be free, or at least cheap. > > After lots of goggling, the only thing that looks anywhere near it to > it is the old NASA OSAL, but that is incomplete and seems to be > abandoned (even email is bouncing) . > > Does anyone know of anything which fits the bill, or nearly so? Even > if it handles 2 out of 3, I suppose I could port the other. > > Any pointers to websites, books, etc. gratefully received., > > Thanks in advance for any help.
I would recommend looking into ACE. ACE has a built in hardware abstraction layer that should be useful. ACE can be found at: http://www.cs.wustl.edu/~schmidt/ACE.html -- EventStudio 4.0 - http://www.Eventhelix.com/Eventstudio/ Sequence diagram based embedded system design tool
I assume you've considered Cygwin?
www.cygwin.com
It provides a Linux abstraction on Windows. Not sure if Vista is 
supported, but we use it on XP Pro.

Baron Samedi wrote:
> On Jan 23, 10:18 pm, David Brown <da...@westcontrol.removethisbit.com> > wrote: >> Baron Samedi wrote: >>> hi, >>> I am seeking an Operating System Abstraction Layer which will easily >>> let me port my code to Windows, Linux and VxWorks. It should >>> preferably be free, or at least cheap. >>> After lots of goggling, the only thing that looks anywhere near it to >>> it is the old NASA OSAL, but that is incomplete and seems to be >>> abandoned (even email is bouncing) . >>> Does anyone know of anything which fits the bill, or nearly so? Even >>> if it handles 2 out of 3, I suppose I could port the other. >>> Any pointers to websites, books, etc. gratefully received., >>> Thanks in advance for any help. >> This depends entirely on the sort of OS services you want to use, and >> the sort of system you are talking about. If you want to use a gui, >> look at something like wxWidgets, or SDL. If your system is big enough, >> look at a high-level language such as Python. If you are doing C++ >> programming, consider the boost libraries. If you are doing unix-style >> development, look at posix (windows is partly posix compliant, and can >> be made more so with cygwin).- Hide quoted text - >> >> - Show quoted text - > > Sorry, I should ahve said - it's embedded stuff. So, no gui, just > message send/receive, task spawn/kill, timers, mutex, semepahore...
>I assume you've considered Cygwin? > www.cygwin.com > It provides a Linux abstraction on Windows. Not sure if Vista is=20 > supported
Supported. Also there is Microsoft Interix - a free download from MS IIRC, which is = the same as Cygwin and probably better. --=20 Maxim S. Shatskih Windows DDK MVP maxim@storagecraft.com http://www.storagecraft.com
Bruce Scherzinger wrote:
> I assume you've considered Cygwin? > www.cygwin.com > It provides a Linux abstraction on Windows. Not sure if Vista is > supported, but we use it on XP Pro. > > Baron Samedi wrote: >> On Jan 23, 10:18 pm, David Brown <da...@westcontrol.removethisbit.com> >> wrote: >>> Baron Samedi wrote: >>>> hi, >>>> I am seeking an Operating System Abstraction Layer which will easily >>>> let me port my code to Windows, Linux and VxWorks. It should >>>> preferably be free, or at least cheap. >>>> After lots of goggling, the only thing that looks anywhere near it to >>>> it is the old NASA OSAL, but that is incomplete and seems to be >>>> abandoned (even email is bouncing) . >>>> Does anyone know of anything which fits the bill, or nearly so? Even >>>> if it handles 2 out of 3, I suppose I could port the other. >>>> Any pointers to websites, books, etc. gratefully received., >>>> Thanks in advance for any help. >>> This depends entirely on the sort of OS services you want to use, and >>> the sort of system you are talking about. If you want to use a gui, >>> look at something like wxWidgets, or SDL. If your system is big enough, >>> look at a high-level language such as Python. If you are doing C++ >>> programming, consider the boost libraries. If you are doing unix-style >>> development, look at posix (windows is partly posix compliant, and can >>> be made more so with cygwin).- Hide quoted text - >>> >>> - Show quoted text - >> >> Sorry, I should ahve said - it's embedded stuff. So, no gui, just >> message send/receive, task spawn/kill, timers, mutex, semepahore...
Not attempting to start a language battle but Ada is available for all of those platforms and can provide the functions you are looking for.
On Thu, 5 Mar 2009, Maxim S. Shatskih wrote:

> Date: Thu, 5 Mar 2009 07:43:15 +0300 > From: Maxim S. Shatskih <maxim@storagecraft.com.no.spam> > Newsgroups: comp.arch.embedded, comp.realtime, alt.os.development > Subject: Re: Seeking Operating System abstraction Layer > >> I assume you've considered Cygwin? >> www.cygwin.com >> It provides a Linux abstraction on Windows. Not sure if Vista is >> supported > > Supported. > > Also there is Microsoft Interix - a free download from MS IIRC, which is the same as Cygwin and probably better. >
If I read the question correctly, the Apache Portable Runtime (APR) comes pretty close to a portable OS abstraction layer, and offers file/directory access, mutex primitives, TCP/IP sockets abstraction, and various other facilities ... Its license is permissive (not GPL), and it is in daily use on millions of platforms support for Unix, Linux, Windoze and others ... http://apr.apache.org/ HTH, Rob Sciuk