public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] 64 bit c-pointers
@ 2003-10-27 14:37 ARVOO support
  2003-10-27 14:44 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: ARVOO support @ 2003-10-27 14:37 UTC (permalink / raw)
  To: ecos-discuss

Hi All,

Is it possible to use 64 bit pointers in ecos c-code ?
eg

int *p;

where sizeof(p) results in 8

Thks,

Rini

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] 64 bit c-pointers
  2003-10-27 14:37 [ECOS] 64 bit c-pointers ARVOO support
@ 2003-10-27 14:44 ` Gary Thomas
       [not found]   ` <023601c39c9b$51bab3c0$2b00a8c0@ARV127>
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2003-10-27 14:44 UTC (permalink / raw)
  To: ARVOO support; +Cc: ecos-discuss


ARVOO support said:
> Hi All,
>
> Is it possible to use 64 bit pointers in ecos c-code ?
> eg
>
> int *p;
>
> where sizeof(p) results in 8
>

It depends on the compiler and target architecture - eCos doesn't care


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] 64 bit c-pointers
       [not found]   ` <023601c39c9b$51bab3c0$2b00a8c0@ARV127>
@ 2003-10-27 15:23     ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2003-10-27 15:23 UTC (permalink / raw)
  To: Rini van Zetten; +Cc: ecos-discuss

Please copy the mailing list on replies so that all may benefit.  Private
support is available only under contract.

Rini van Zetten said:
> Hi Gary,
>
> Thanks for your answer.
>
> But i still have some doubts.
>
> If you look for example at the file hal_if.c in packages/common/v2_0/src
> you see
>
>         for (i = 0; i < CYGNUM_CALL_IF_TABLE_SIZE; i++)
>             hal_virtual_vector_table[i] = (CYG_ADDRWORD) &nop_service;
>
> where IMHO an address is forced to 32 bit isn't it ?

Not in a properly defined HAL!  CYG_ADDRWORD is defined to be a quantity
large enough to hold any arbitrary pointer.  If your hardware has 64 bit
addresses, then this must be defined as so.

Note 1: this is not what your original question asked (but I'm sure it's
what you wanted to know).

Note 2: AFAIK, eCos has never been ported to a pure 64 bit system, only
some hybrids which can be configured as either 32 or 64.  I'm sure that
there are some places in the code where there may be problems when moving
to a 64-bit address space.

>
> Rini
>
> ----- Original Message -----
> From: "Gary Thomas" <gary@mlbassoc.com>
> To: "ARVOO support" <support@arvoo.nl>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Monday, October 27, 2003 3:44 PM
> Subject: Re: [ECOS] 64 bit c-pointers
>
>
>>
>> ARVOO support said:
>> > Hi All,
>> >
>> > Is it possible to use 64 bit pointers in ecos c-code ?
>> > eg
>> >
>> > int *p;
>> >
>> > where sizeof(p) results in 8
>> >
>>
>> It depends on the compiler and target architecture - eCos doesn't care
>>
>
>


------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-27 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 14:37 [ECOS] 64 bit c-pointers ARVOO support
2003-10-27 14:44 ` Gary Thomas
     [not found]   ` <023601c39c9b$51bab3c0$2b00a8c0@ARV127>
2003-10-27 15:23     ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).