List Info

Thread: Customizing the C compilation




Customizing the C compilation
country flaguser name
United States
2007-07-26 14:58:14

Hi,

I'd like to build an Eiffel application for an embedded environment
for which I know all the required configuration for a C compilation
with Visual Studio. I run on Windows XP with Visual C++ 2005 as a
back-end compiler so it appears to me that it should be pretty
straight forward build port the Eiffel code.

Also, I'd like to be able to put the settings in my ECF file so that I
can switch from a Win32 target (or any other desktop target) to my
embedded target without any change to my development environment.

Does anyone know how I can setup my C compilation to be able to do so?

Thanks in advance,

Simon

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Yoga Groups

Find Enlightenment

& exchange insights

with other members

RE: Customizing the C compilation
country flaguser name
United States
2007-07-26 19:27:38

> Also, I'd like to be able to put the settings in my ECF file
> so that I can switch from a Win32 target (or any other
> desktop target) to my embedded target without any change to
> my development environment.

At the moment you can achieve this by adding a fake external include clause
that would read ". MY_C_OPTIONS". Then the `MY_C_OPTIONS' part is given to
the C compiler command line.

> Does anyone know how I can setup my C compilation to be able to do so?

The other thing you can do is define the ISE_CFLAGS environemnt variable and
those gets added to the C compilation phase.

Regards,
Manu

__._,_.___
.

__,_._,___
Re: Customizing the C compilation
country flaguser name
United States
2007-07-26 20:22:56

Thanks Manu, I'll try that. ; Also, can you tell me what amount of the C standard library is normally used by an Eiffel system of its runtime?  I'm very much constrained on that side...

On 7/26/07, Emmanuel Stapf [ES] < manuseiffel.com">manuseiffel.com> wrote:

> Also, I'd like to be able to put the settings in my ECF file
> so that I can switch from a Win32 target (or any other
> desktop target) to my embedded target without any change to
> my development environment.

At the moment you can achieve this by adding a fake external include clause
that would read ". MY_C_OPTIONS". Then the `MY_C_OPTIONS' part is given to
the C compiler command line.

> Does anyone know how I can setup my C compilation to be able to do so?

The other thing you can do is define the ISE_CFLAGS environemnt variable and
those gets added to the C compilation phase.

Regards,
Manu




--
Simon

__._,_.___
.

__,_._,___
RE: Customizing the C compilation
country flaguser name
United States
2007-08-08 00:50:54

> Thanks Manu, I'll try that. Also, can you tell me what
> amount of the C standard library is normally used by an
> Eiffel system of its runtime? I'm very much constrained on
> that side...

At the moment, we mostly use the standard library:
- to allocate memory
- to access files/sockets
- for signal handling
- to manipulate some C strings

Regards,
Manu

__._,_.___
.

__,_._,___
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )