delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/05:52:52

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: <slrn7bteai.elk.metalb@bart.us.es>
NNTP-Posting-Host: bart.us.es
Mime-Version: 1.0
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 <stdio.h>
#include <stdlib.h>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019