🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jo Blishen Fri, 30 Oct 1992 13:09
gcc to produce no code?
#10
Author: Jo Blishen
Date: Fri, 30 Oct 1992 13:09
16 lines
1219 bytes
Does anybody know of a way to get gcc to produce no code.  Specifically
gcc-1.42 on a Sun4.  I know about throwing the code away (e.g. >/dev/null) -
I would rather that code generation just doesn't happen.

We want to do something bizarre for our first year students - running a first 
pass with the optimiser on to get "uninitialised variable" warnings (the first 
pass producing no code) and then a second pass without -O which produces code.  
This is so that ups doesn't deny the existence of half the variables when the
students are debugging their code.

Jo
-- 
Jo Blishen                         
LFCS, Dept. of Computer Science    Email: jtb@dcs.ed.ac.uk
University of Edinburgh            Tel:   (+44) (0)31-650-5192
Edinburgh EH9 3JZ, UK.             Fax:   (+44) (0)31-667-7209
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads