Path: utzoo!mnetor!uunet!mcvax!enea!ttds!draken!duvan!drs-ano From: drs-ano@duvan.nada.kth.se (Arne Nordmark) Newsgroups: comp.sys.amiga Subject: PRELINK (with Blink - Version 7.2) Message-ID: <249@draken.nada.kth.se> Date: 30 Dec 87 16:32:16 GMT Sender: usenet@draken.nada.kth.se Reply-To: NORDMARK@elin.lne.kth.se (Gunnar Nordmark) Organization: The Royal Inst. of Techn., Stockholm Lines: 87 Summary: How? Hi, all you Lattice folks. I recently got the 4.0 upgrade of Lattice C. (Nice job) Best of all: The constant-expression-with-fast-floating-point bug is fixed! (Eric Graham's raytracing program now runs with the -f option. Great.) I've got one problem, however. How do I use the new PRELINK option with Blink V7.2? The documentation is really voluminous on this one :-) Here is a raw CLI transcription of my session this morning. It leads straight to a guru. So be careful... --- Start of transcription ------ Start of transcription ------ 1> copy * _main.c void _main() { main(); } 1> lc -v _main Lattice AmigaDOS C Compiler, Version 4.0 Copyright (C) 1987 SAS Institute Inc. All rights reserved. Compiling _main.c Module size P=00000006 D=00000000 U=00000000 Total files: 1, Compiled OK: 1 1> blink LIB:c.o+_main.o TO _main.p LIB LIB:lc.lib+LIB:amiga.lib PRELINK Blink - Version 7.2 Copyright (c) 1986 The Software Distillery. Copyright (c) 1987 SAS Institute Inc. All Rights Reserved. Box 8000 SAS Circle, Cary NC 27511-8000 - Telex 802505 (919) 467-8000 [4mUndefined symbols [0m [4mFirst Referenced[0m _LinkerDB File 'LIB:c.o' __BSSLEN File 'LIB:c.o' _main File '_main.o' __BSSBAS File 'LIB:c.o' BLINK Complete - Maximum code size = 1560 ($00000618) bytes Final output file size = 2656 ($00000a60) bytes 1> copy * main.c void main() { } 1> lc -v main Lattice AmigaDOS C Compiler, Version 4.0 Copyright (C) 1987 SAS Institute Inc. All rights reserved. Compiling main.c Module size P=00000002 D=00000000 U=00000000 Total files: 1, Compiled OK: 1 1> blink _main.p+main.o TO main SC Blink - Version 7.2 Copyright (c) 1986 The Software Distillery. Copyright (c) 1987 SAS Institute Inc. All Rights Reserved. Box 8000 SAS Circle, Cary NC 27511-8000 - Telex 802505 (919) 467-8000 BLINK Complete - Maximum code size = 1616 ($00000650) bytes Final output file size = 1804 ($0000070c) bytes 1> main ------------------------------ | | | G U R U | | | ------------------------------ ---- End of transcription -------- End of transcription ---- What did I do wrong? After a few deep dives in omd-listings and ObjDumps I found that the relocation information gets somewhat trashed (= GURU). Has anyone else bumped into this problem? I'd appreciate your help! * HAPPY NEW YEAR * - Gunnar Nordmark -