1994 1995 1996 1997 <1998> 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 <1998> 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | gcc2.8.1 cross compiler for vxWorks under Linux / hpux |
From: | Till Straumann <[email protected]> |
To: | [email protected] |
Date: | Fri, 30 Oct 1998 20:57:42 +0100 |
During the last couple of days I spent some efforts to get binutils-2.9.1 / gcc2.8.1 / gdb4.17 to work on our Linux / hpux10.20 platforms. (The gcc that was shipped with our vxWorks5.2 was still gcc2.2.3.1 and there is no Linux version of course.) It was surprisingly easy and after tweaking CONFIG_SITE.Vx & friends, EPICS-3.13.0.beta12 compiled successfully for the mv162 and mv167 targets under Linux (yes, it is possible to develop server side code under Linux -- I mean, I don't know about the legal issues, i. e. if the vxWorks license allows for using the headers under gcc/Linux).
However, I'd like to post some minor problems I came across:
/* set DEFAULT_PCC_STRUCT_RETURN to 0 for compat with vxWorks5.2 */
#define DEFAULT_PCC_STRUCT_RETURN
0
at the end of the file vxm68k.h in the gcc-2.8.1/config/m68k subdirectory.
This applies for all host architectures.
Note that objects compiled with different settings of this option must
not be linked together. The linker doesn't complain, but the function
return values are wrong. This is nasty, because only functions which return
small structs are affected and these are not very frequent...
Hope to meet you people soon in Berlin, Till.