[fpc-devel] generated assembler

2008-09-03 Thread Graeme Geldenhuys
Hi, I know it's possible, but I can't remember the exact FPC parameters. How do I see the assembler generated by FPC for my source code? I need to do some optimisation comparisons looking at the assembler generated. eg: Is assembler code generated for a call to a blank (no content) procedure? Th

[fpc-devel] generated assembler code

2015-05-19 Thread Martin Frb
fpc 3.1.1 on i386 -O3 function FOO: Boolean; inline; begin Result := FMem <> nil; end; function BAR: TPItemT; begin if FOO then Result := nil else Result := TPItemT(FMem.FirstItemPointer + (Index * FItemSize.ItemSize)); end; generates something like: 005EACF0 833A00

Re: [fpc-devel] generated assembler

2008-09-03 Thread Micha Nelissen
Graeme Geldenhuys wrote: Hi, I know it's possible, but I can't remember the exact FPC parameters. How do I see the assembler generated by FPC for my source code? Read ppc386 -h. Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://

Re: [fpc-devel] generated assembler

2008-09-03 Thread Graeme Geldenhuys
On 9/3/08, Micha Nelissen <[EMAIL PROTECTED]> wrote: > > Read ppc386 -h. OK, I meant to say, I already looked at the parameter help, I'm just not sure which one I need to use. I would guess -al is what I am looking for? Is there more information on what all these options do? Sorry, my assemble

Re: [fpc-devel] generated assembler

2008-09-03 Thread Michael Van Canneyt
On Wed, 3 Sep 2008, Graeme Geldenhuys wrote: > On 9/3/08, Micha Nelissen <[EMAIL PROTECTED]> wrote: > > > > Read ppc386 -h. > > > OK, I meant to say, I already looked at the parameter help, I'm just > not sure which one I need to use. I would guess -al is what I am > looking for? Is there m

Re: [fpc-devel] generated assembler

2008-09-03 Thread Martin Schreiber
On Wednesday 03 September 2008 11.07:49 Graeme Geldenhuys wrote: > Hi, > > I know it's possible, but I can't remember the exact FPC parameters. > How do I see the assembler generated by FPC for my source code? > > I need to do some optimisation comparisons looking at the assembler > generated. > >

Re: [fpc-devel] generated assembler

2008-09-03 Thread Graeme Geldenhuys
On 9/3/08, Martin Schreiber <[EMAIL PROTECTED]> 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

Re: [fpc-devel] generated assembler

2008-09-03 Thread Martin Schreiber
On Wednesday 03 September 2008 12.04:23 Graeme Geldenhuys wrote: > On 9/3/08, Martin Schreiber <[EMAIL PROTECTED]> 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 f

Re: [fpc-devel] generated assembler

2008-09-03 Thread Nataraj S Narayan
Hi Try fpc -sh regards Nataraj On Wed, Sep 3, 2008 at 2:37 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > I know it's possible, but I can't remember the exact FPC parameters. > How do I see the assembler generated by FPC for my source code? > > I need to do some optimisation compari

Re: [fpc-devel] generated assembler

2008-09-03 Thread Graeme Geldenhuys
On 9/3/08, Martin Schreiber <[EMAIL PROTECTED]> wrote: > > 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. OK, thanks Martin. Debugging in MSEide seems quite

Re: [fpc-devel] generated assembler

2008-09-03 Thread Martin Schreiber
On Wednesday 03 September 2008 12.53:09 Graeme Geldenhuys wrote: > On 9/3/08, Martin Schreiber <[EMAIL PROTECTED]> wrote: > > 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 s

Re: [fpc-devel] generated assembler

2008-09-03 Thread David Pethes
Graeme Geldenhuys wrote: Is assembler code generated for a call to a blank (no content) procedure? The content of the procedure might be IFDEF'd out. I've checked it, and it does. Mark the procedure as inline together with IFDEF-ing its code, and there will be no overhead. David ___

Re: [fpc-devel] generated assembler

2008-09-03 Thread David Pethes
Graeme Geldenhuys wrote: PS: The image was received fine. I noticed with my own experimentation that small screenshots (not photos) work better as GIF images. It's a much better option for size reduction with no visual loss. Your image as PNG is 28K. As a GIF it's only 17.5K :-) Don't use JPG's,

Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On Wed, Sep 3, 2008 at 7:50 PM, David Pethes <[EMAIL PROTECTED]> wrote: >> as PNG is 28K. As a GIF it's only 17.5K >> :-) Don't use JPG's, they are useless and look damn ugly! > > It's 9K in PNG if you use a palette/256 colors, much like GIF does ;) Cool! I never thought to look at the colour pa

Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell
It's 9K in PNG if you use a palette/256 colors, much like GIF does ;) Firefox shows PNGs (and JPGs) within the message, while you would need to open an external viewer for GIFs. So PNG is really nice here ! -Michael ___ fpc-devel maillist - fpc-d

Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, Michael Schnell <[EMAIL PROTECTED]> wrote: > Firefox shows PNGs (and JPGs) within the message, while you would need to > open an external viewer for GIFs. So PNG is really nice here ! Huh?? Many sites use gif images! Firefox supports PNG, GIF, JPG etc.. all natively. At least my vers

Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell
Graeme Geldenhuys wrote: On 9/4/08, Michael Schnell <[EMAIL PROTECTED]> wrote: Firefox shows PNGs (and JPGs) within the message, while you would need to open an external viewer for GIFs. So PNG is really nice here ! Huh?? Sorry Typo: Thunderbird ! -Michael

Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, Michael Schnell <[EMAIL PROTECTED]> wrote: > > Huh?? > Sorry Typo: Thunderbird ! Makes no difference, that test email I mentioned was from one account to my work account. HTML email (which I hate) or plain text emails... Thunderbird shows png, gif and jpg inline, without issues. In th

Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell
You are right. it does show gif. No idea why it did not when I tested this some time ago... -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] generated assembler code

2015-05-19 Thread Jonas Maebe
Martin Frb wrote on Tue, 19 May 2015: 005EACF0 833A00 cmp dword ptr [edx],$00 005EACF3 0F95C0 setnz al 005EACF6 84C0 test al,al 005EACF8 7509 jnz +$09 Is that something that should be optimized away? I'm sure you can

Re: [fpc-devel] generated assembler code

2015-05-19 Thread Martin Frb
On 19/05/2015 14:23, Jonas Maebe wrote: Martin Frb wrote on Tue, 19 May 2015: 005EACF0 833A00 cmp dword ptr [edx],$00 005EACF3 0F95C0 setnz al 005EACF6 84C0 test al,al 005EACF8 7509 jnz +$09 Is that something that sho