delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/01:15:22

Date: Fri, 24 Oct 1997 22:11:53 -0700 (PDT)
Message-Id: <199710250511.WAA07636@adit.ap.net>
Mime-Version: 1.0
To: flux AT IAEhv DOT nl (Gibby Koldenhof), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: 3 silly questions ...

At 03:52  10/24/1997 GMT, Gibby Koldenhof wrote:
>G'day I justed ported a fairly large project to djgpp, I haven't
>used djgpp in a *looong* time so I was wondering if some kind
>soul could help me out with the following questions ;
>
>1. CLK_TCK doesn't seem to be defined (although it's ANSI)
>   bug ?
CLK_TCK *is* defined in time.h, but is enclosed in `#ifndef
__STRICT_ANSI__', which IIRC `gcc -ansi' defines. So if CLK_TCK really is
ANSI, then maybe this is a bug. You should be able to compile without -ansi
without trouble. The only difference is that GCC won't complain if you use
their extensions.
>
>2. vfscanf() isn't present although it's a non-ANSI it's a fairly
>   commen extension, I currently use _dosscan() (internal scanner)
>   it *seems* to work but I'm not sure how sturdy this is, anybody
>   have any experiences with this ?
I think somebody is working on this. You should probably avoid using
_doscan, but it should be safe enough in the short term. You probably should
look at its source to make sure it does what you think.
>
>3. For some strange reason the app. (a render engine) runs horribly
>   slow (watcom 10.6 pushes out 20 fps and djgpp only 13 fps) 
>   so I must be mixing up some optimization switches, but I can't
>   figure out wich. I currently use ;
>
>   -O3 -fomit-frame-pointers -ffast-math 
                           ^^^
I think you mean `-fomit-frame-pointer' (singular).
>
>   other switches I use are ;
>
>   -m486 (isn't there a -m586 ?)
No there isn't. But see FAQ section 14.3 for some supposedly equivalent flags.
>
>   and
>  
>   -pedantic -Wall 
See FAQ chapter 14, especially 14.5, for some thoughts on why this might be
happening.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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