Subject: Re: ARM ELF TODO list
To: Christos Zoulas <>
From: Jason R Thorpe <>
List: port-arm
Date: 01/29/2002 09:00:03
On Tue, Jan 29, 2002 at 03:35:20PM +0000, Christos Zoulas wrote:

 > I am not an ARM or toolchain expert, but I think we should be going with
 > packed enums. My reasoning is:

I think I'm with Christos and Richard on this issue.

 > - This is the official ARM abi. If you violate one aspect of it, you might
 >   throw the whole thing out. We want to be able to use externally supplied
 >   libraries, so we'll do what we have to.
 > - You can avoid the issue of library compatibility, if you never use enum
 >   declarations in function arguments; use int's instead. Looking at our
 >   header files, there is only a dozen or so functions that take enum foo
 >   as a parameter.
 > - Paying attention to short enums makes the code more portable, and fixing
 >   the code to work with short enums is trivial.
 > - If you really want to use enums in function parameters and maintain
 >   software compatibility you can force the compiler not to pack the enums.
 > christos

        -- Jason R. Thorpe <>