Article View: gnu.gcc.help
Article #42108Strange behaviour of gcc for ADSP21060?
From: Abhinav Jawadekar
Date: Fri, 12 Jan 1996 00:00
Date: Fri, 12 Jan 1996 00:00
30 lines
2141 bytes
2141 bytes
Hello Netters, We are facing a problem with gcc (cross compiler for ADSP21060 of Anlog Devices that runs on PC). For different optimisation levels, the compiler uses different registers/no registers for passing arguments to functions. Hence it is absolutely essential that all the files to be linked together are compiled with the same optimisation options. If this is not done, then the functions get wrong arguments. In general this kind of behaviour is definitely not acceptable because a programmer is bound to use library routines and the compilation options for a particular library need not be known to the programmer. Can somebody enlighten me about whether this is a bug or a feature? Thanx. Abhinav Jawadekar. / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / Abhinav M. Jawadekar, / / Sr. Engineer R&D. / / / / Office: / / Tata Elxsi (India) Ltd., 123, Richmond Road, Bangalore 560025, India. / / Phone: 91-80-8452014, 8452015, 8452016, 8452185. Fax: 91-80-8452019. / / / / Residence: / / 151, Udani Layout, Cambridge Road, Ulsoor, Bangalore 560008, India. / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
Technical Details
Message-ID:
<Pine.3.87.9601121511.A28131-0100000@teil.soft.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fc1f24f7055a8657,start X-Google-Attributes: gid11318c,public From: Abhinav Jawadekar <abhinav@teil.soft.net> Subject: Strange behaviour of gcc for ADSP21060? Date: 1996/01/12 Message-ID: <Pine.3.87.9601121511.A28131-0100000@teil.soft.net> X-Deja-AN: 134933735 x-mail2news-path: tata_elxsi.soft.net x-nntp-posting-host: tata_elxsi.soft.net content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: gnu.gcc.help