[fpc-devel] generated assembler

Martin Schreiber fpmse at bluewin.ch
Wed Sep 3 12:43:26 CEST 2008


On Wednesday 03 September 2008 12.04:23 Graeme Geldenhuys wrote:
> On 9/3/08, Martin Schreiber <fpmse at bluewin.ch> wrote:
> > You could use breakpoints and the (dis-)assembler window of MSEide, it
> > lists mixed pascal and machine code.
>
> Thanks Martin, I'll take a look.
>
> What I'm trying to find out (with my rusty assembler knowledge) is if
> a lot of IFDEF's around procedure calls, compared to only one IFDEF
> inside a procedure would make a difference in performance and the code
> generated.
>
> I would prefer example 2 (it looks cleaner and would be less work),
> and from my quick/crude analysis, it seems both options generate
> pretty much the same code if the gDEBUG define is disabled (does NOT
> exist).
>
For the people who don't know MSEide attached a screenshot, I hope the file is 
not too big. It is with -O3. With inline there is still some overhead because 
of the string variable.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assemblerwindow.png
Type: image/png
Size: 27925 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080903/199149e7/attachment.png>


More information about the fpc-devel mailing list