Re: Inline's and preprocessor

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 07/10/04

  • Next message: Gary Chanson: "Re: CreateProcessWithLogonW and STARTF_USESHOWWINDOW"
    Date: Sat, 10 Jul 2004 15:19:10 -0400
    
    

    "Jacky Luk" <jl@knight.com> wrote in message
    news:umqg27nZEHA.1356@TK2MSFTNGP09.phx.gbl...
    > Is it possible to "project" that part of code out?
    > I'm building a disassembler. I can not determine when inline code was used
    > but on the other hand seize the source code in the headers of the compiler
    > set....
    > How do you "attempt" to compile the inline code so that the equivlents can
    > be used by FLIRT. If it's not possible, I have to name the routines as
    > unnamed_library_routine etc... Any insights?

        Basically, you can't. I suppose, assuming you have the source, that you
    could build a table of inlined functions and do a brute force search for the
    appropriate definition, but it really doesn't sound like a realistic
    approach. Especially since you don't know what the compiler might choose to
    optimize into an inlined function.

    -- 
    -GJC [MS Windows SDK MVP]
    -Software Consultant (Embedded systems and Real Time Controls)
    - http://www.mvps.org/ArcaneIncantations/consulting.htm
    -gchanson@mvps.org
    

  • Next message: Gary Chanson: "Re: CreateProcessWithLogonW and STARTF_USESHOWWINDOW"

    Relevant Pages

    • JPI 1.17 compiler directives
      ... I wonder if anyone still has the compiler crib card for the TS 1.17 ... I index overflow test +on - off? ... to think "I" was for INLINE, but I suspet it is Index range checking. ... inline code as well). ...
      (comp.lang.modula2)
    • Re: What is the gain of "inline"
      ... int get_foo_count(struct bar *bar) ... directly with inline code. ... computing the address of a function in a shared library and calling ...
      (comp.lang.c)
    • Re: strange crush when using template singleton class
      ... Since I am using a template and since template only use inline code and ... There's no return type for this function, so it's not a legal declaration. ...
      (microsoft.public.vc.language)
    • Re: [-mm patch] make kcalloc() a static inline
      ... > and I saw small reduction in kernel text with kcallocinlined. ... the inline code. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Where are project files?
      ... As for VS 2003 supporting inline code, let me say that the link you provided ... That's not to say that you couldn't *do* inline coding in VS 2003, ... I said VS 2003 didn't *offer* an inline coding model, ...
      (microsoft.public.dotnet.framework.aspnet)