This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: [APPROVE?] Fix MIPS and PowerPC with GCC 3.x
On Thu, 2003-02-27 at 08:18, Bart Veer wrote:
> >>>>> "Jifl" == Jonathan Larmour <jifl at eCosCentric dot com> writes:
<snip>
> Jifl> This would be similar to the various hal_mk_defs.c's
> Jifl> floating around, although they requires knowledge of asm
> Jifl> syntax. Instead the C++ file can just generate the header
> Jifl> contents directly with #define's and the custom build step
> Jifl> can move it into the install tree. Something similar happens
> Jifl> for the heap magic in the memalloc package (a TCL file doing
> Jifl> the generating that time).
>
> I don't see how your approach is going to work. We need to know how
> the target g++ messes about with its classes, not the host g++. Since
> we cannot execute a feature test program, the way to do this is to
> generate some assembler with the target g++ and analyse that, e.g.
> with a Tcl script.
>
Which is exactly the problem solved by hal_mk_defs.c (albeit C
structures instead of C++ members...)
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------