| delorie.com/archives/browse.cgi | search | 
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f | 
| From: | "Cristiano" <cristiano DOT pi AT NSquipo DOT it> | 
| Newsgroups: | comp.os.msdos.djgpp | 
| References: | <43cbed4a_1 AT x-privat DOT org> <gkbt93-1jp1 DOT ln1 AT news DOT infowest DOT com> <43cc0ae2_3 AT x-privat DOT org> <200601162127 DOT k0GLRpSm002776 AT envy DOT delorie DOT com> <43cc161e_3 AT x-privat DOT org> <v6jt93-c3r1 DOT ln1 AT news DOT infowest DOT com> <43cc286a_1 AT x-privat DOT org> <k4pt93-bks1 DOT ln1 AT news DOT infowest DOT com> | 
| Subject: | Re: Reading the TSC | 
| Lines: | 60 | 
| X-Priority: | 3 | 
| X-MSMail-Priority: | Normal | 
| X-Newsreader: | Microsoft Outlook Express 6.00.2900.2527 | 
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2900.2527 | 
| X-RFC2646: | Format=Flowed; Original | 
| NNTP-Posting-Host: | $$_ewgrl9xhe2.x-privat.org | 
| Message-ID: | <43cd4cac$1_2@x-privat.org> | 
| Organization: | X-Privat NNTP Server - http://www.x-privat.org | 
| X-Authenticated-User: | $$g656buj-7nk5btgknyi-m | 
| X-Complaints-To: | abuse AT x-privat DOT org | 
| Date: | 17 Jan 2006 20:59:40 +0100 | 
| To: | djgpp AT delorie DOT com | 
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp | 
| Reply-To: | djgpp AT delorie DOT com | 
Rod Pemberton wrote: > "Cristiano" <cristiano DOT pi AT NSquipo DOT it> wrote in message > news:43cc286a_1 AT x-privat DOT org... >> Rod Pemberton wrote: >>> "Cristiano" <cristiano DOT pi AT NSquipo DOT it> wrote in message >>> news:43cc161e_3 AT x-privat DOT org... >>>> DJ Delorie wrote: >>>>> Try -march=486 >>>> >>>> I get: Invalid option 'arch=486'. :-( >>>> >>>> Cristiano >>> >>> -march=i486 >> >> I downloaded a more updated version from here: >> http://www.delorie.com/djgpp/dl/ofc/ >> but now I get: unrecognized option '--traditional-format'. >> >> Is it really impossible to compile that 4-line program? >> >> Cristiano > > Yes, if DJGPP is setup properly, it should compile easily. > If I call the file 'tst.c': > > gcc -o tst.exe tst.c With that line I get: C:/djgpp/tmp\cccaaaaa: Assembler messages: C:/djgpp/tmp\cccaaaaa:26: Error: no such 386 instruction. 'rdtsc' (notice the forward and back slashes). > It shouldn't need '-march=i486' or '-mcpu=i486' ... With gcc -o tst.exe tst.c -mcpu=i486 I get: cc1.exe: Invalid option 'cpu=i486'. > Are the settings in DJGPP.ENV setup properly? I don't understand anything in that file (the syntax is very "strange" to me), but it is the original file. There are many '>' like in: DJDIR=%:/>DJGPP% is that correct? > How about the DOS > variable 'DJGPP'? There should be a 'SET DJGPP=C:\DJGPP\DJGPP.ENV' > or similar in your autoexec.bat. Do your DOS paths point to > C:\DJGPP\BIN or similar? They are both defined in the autoexec.bat, but DJGPP is defined with the '/' insted of '\' (as you wrote). Thank you for the help Cristiano
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |