delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/21/10:45:21

From: "Lars Hansen" <lars DOT o DOT hansen AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: several questions (symify, dynamic labels, cpu clock)
Date: Tue, 21 Jan 2003 16:32:30 +0100
Organization: 1&1 Internet AG
Lines: 50
Message-ID: <b0jp6g$7b9$1@news.online.de>
References: <b0ff15$lql$1 AT news DOT online DOT de> <b0je70$5ui$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: p50838960.dip0.t-ipconnect.de
X-Trace: news.online.de 1043163152 7529 80.131.137.96 (21 Jan 2003 15:32:32 GMT)
X-Complaints-To: abuse AT online DOT de
NNTP-Posting-Date: 21 Jan 2003 15:32:32 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> If you don't get filenames and line numbers, chances are your version
> of GCC is relatively recent, so the old "symify" doesn't understand
> its debug information format any more.  Use bsdsymify instead of
> symify, then, as the README for your GCC would have told you to.

It didn't (readme.1st didn't and FAQ neither did when I remember correctly
from reading about symify there, bsdsymify wasn't mentioned, but wait; I'll
have a look  -- nope, no info -ahh, I could use info, but,... no, no time)

btw. that could be a suggestion for a djgpp documentation - and I might e-mail
DJ delorie about it, but not now - every user usable program listed somewhere
in one file  with executable name, program purpose and full documenatiion of
all commandline switches. That's actually all ones asks for the doc. of a
command-line compiler. (and then there may be the FAQ with "what to do
if?...")


>
> > 2. how can I get the address of a dynamic label which is in a
> > function I am not in?
>
> Don't worry --- it wouldn't be useful for anything, even if you could.
> Dynamic labels are not meant as a substitute for longjmp() or plain
> function calls.

Dynamic gotos are very nice: the best use is if jmp register is possible (so
updating an register with the jump address) or by modyfying the memory place
of the loaded executing code with the new wanted address.

But "get "flag" from memory, cmp flag, jnz or whatever" is nearly the same as
"get address from memory, jmp to address".


>
> > 3. is CLOCKS_PER_SEC the clock speed of the cpu, so for example
> > 1,533,000,000 on an AthlonXP 1800+ ?
>
> RTFM.  Or a C textbook.


I got the Intel documentation of RDTSC already, but I'll look also for RTFM.
Or you could have told me if you know.
That's the nice thing about newsgroups: one gets an answer faster than
searching the i-net for info about things google didn't find documents for
under its Top 100 hits for a search request.


Lars


- Raw text -


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