Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Object file max size Date: Tue, 21 Oct 1997 10:48:23 GMT Organization: SN Systems Lines: 21 Message-ID: <344c8812.4556762@news.playstation.co.uk> References: <344BC666.69D8@peace.co.nz> Reply-To: gil@snsys.com NNTP-Posting-Host: gil.snsys.com X-Newsreader: Forte Free Agent 1.11/32.235 James Russell wrote: >For convenience, when I create raw data I convert it to a source file >consisting of: >char MyRawData[] ={ 0x12, 0x34, ..... } >and then compile it into an object file. This way, I can reference >MyRawData from within by program without having to figure out what >address to load it to using DLOAD, and I upload one file instead of 20. >While this works well for small files, large files are having trouble >linking. Is there a maximum size for object files? Don't know whether there's a maximum size, although there shouldn't be. If you'd rather upload binary files, why not declare empty arrays with specific sizes, check where they end up in the linker map file (does ld do one of them?) and then upload them manually. Or suss out how to use a proper linker script, which is the really powerful way, although ld's scripting language is a bit, er, yes, well. Gil Jaysmith SN Systems Software Ltd (http://www.snsys.com) Standard disclaimer for personal opinions.