ts-7000
[Top] [All Lists]

[ts-7000] Re: Segmentation Faults with Arrays greater than 64kB on TS-72

To:
Subject: [ts-7000] Re: Segmentation Faults with Arrays greater than 64kB on TS-7260
From: "PeterElliot" <>
Date: Wed, 04 Jul 2007 02:22:21 -0000
Hi Geoff,

Are you using a signed 16-bit variable for the index? If you were 
then if you increment it past 32K it will go negative and jump back 
past the start of the array. I've written my code using 32-bit 
variables (as that's what the CPU uses natively) and don't have many 
memory issues. 

In my application I have lots of arrays and structures larger than 
64kB, and a few over 512KB.

Posting snippets of your code may help diagnose what's going on.

Regards,

PJE


--- In  "geoffveale" <> wrote:
>
> WARNING: This may be a novice question..
> 
> In the past I wrote c code for Dos and I could not have an array 
that
> exceeded 64kB. When I started with TS-Linux on my TS-7260 I thought
> that I might be able to have arrays greater than 64kB. To my
> displeasure I have found that if I use arrays of more that 64kB I
> eventually get segmentation fault errors. If I keep my arrays to 
less
> than 64kB the problems disappear. 
> 
> Is this normal for Linux or specific to the TS-7000 series? 
> 
> Geoff Veale
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU