Re: Why doesn't this work



On Thu, 03 Jul 2008 14:29:03 -0700, Cyril Novikov
<cnovikov@xxxxxxxxxxxxxxxxxxx> wrote:

John wrote:

I don't see anything glaring. Run the preprocessor on your code and
print the listing. That will tell you what is actually going to the
compiler. Write up a test case, and then post the results of the
processed listing if you can't see the problem. Since DEBUG_PRINT is a
macro we need the pre-processed code to help.
I'm sorta a newbie in lynxOS. I have done a device driver on an x86
platform (many many moons ago) using basically the same code.
DEBUG_PRINT macro works find.
Anyway, how do a run the preprocessor on my code. Or is there a way to
generate a compile listing where I can take a look at the generated
code.

Copy/paste the compile command that gets executed when you run make to the
command prompt. But instead of the -c option, pass -E to gcc. The output file
(specified after -o) will contain preprocessed code.


thanks, I'll give that a try the first chance I get.

.



Relevant Pages

  • Possible ARM Compiler Issue
    ... Following that listing is the assembler section ... CODE, ARM, SELECTION=1; comdat noduplicate ... ; Function compile flags: /Ogsy ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an ...
    (comp.os.vms)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... Then I could show the people in Unixland what I am looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an enormous help while debugging; it lists every variable and the line number of each statement that references it. ...
    (comp.os.vms)
  • Re: Supress Option List
    ... PROBABLY means that your shop has other problems. ... that every listing is ONE page longer? ... >>IGYCRCTL lists all the options in effect for compile. ...
    (comp.lang.cobol)
  • Re: Supress Option List
    ... Is there a way to suppress this option listing so the resulting source listing begins with the IDENTIFICATION DIVISION? ... I assume you are referring to IBM mainframe COBOL, ... Will you always compile programs for 31-bit mode execution and shared use under IMS or CICS? ...
    (comp.lang.cobol)