From: metalb AT bart DOT us DOT es (Jaime Tejedor Gomez) Newsgroups: comp.os.msdos.djgpp Subject: Small problem with instruction sorting Date: 8 Feb 1999 10:29:34 GMT Organization: Escuela Superior de Ingenieros, Univ. de Sevilla, Spain Lines: 27 Message-ID: NNTP-Posting-Host: bart.us.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: slrn (0.9.3.2 UNIX) Cache-Post-Path: bart!unknown AT bart To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all I've got the following program: #include #include main() { printf("HELLO WORLD. PRESS KEY"); while(!bioskey(1)); exit(0); } My question is: How can I prevent DJGPP from reordering instruction's ejecution to make it print the message before waiting for the key? Sorry if that's a dumb question, but I've searched in FAQ, info and Rhide help and found nothing about it. TIA. -- METALBRAIN "Smallest programs are the greatest" email: metalb AT www DOT esi DOT us DOT es - http: www.esi.us.es/~metalb