Re: [dev] Enhanced arg.h from quark

From: Sebastian LaVine <mail_AT_smlavine.com>
Date: Tue, 06 Jul 2021 00:08:04 +0000

On July 5, 2021 11:21:02 PM UTC, Nikita Zlobin <nick87720z_AT_gmail.com> wrote:
>Check for double dash may be done in for loop.
>
>arg.h: https://pastebin.com/c4FQcrtH
>
>I tried to compare objdump'ed compiler output with different options -
>filesizes are same, though difference exists.
>
>There are diffs for 3 -O levels: -O3, -O2, -Os.
>
>For -O3:
>
>--- tabbed-O3-1.o.objdump 2021-07-05 21:13:23.601297273 +0500
>+++ tabbed-O3-2.o.objdump 2021-07-05 21:13:57.461296518 +0500
>_AT_@ -2327,10 +2327,10 @@
> cmpb $0x2d,(%rbx)
> jne <main+0x135>
> movzbl 0x1(%rbx),%eax
>- test %al,%al
>- je <main+0x135>
> cmp $0x2d,%al
> je <main+0xcd0>
>+ test %al,%al
>+ je <main+0x135>
> mov 0x0(%rip),%r11d # <main+0x84>
> add $0x1,%rbx
> xor %r9d,%r9d
>
>For -O2: https://pastebin.com/4WR3L8dc
>With -Os: https://pastebin.com/09LNut3R
>tabbed.o with -O2: https://pastebin.com/yb0jCE6W

Might I recommend using https://0x0.st or
https://ix.io for pastebins. You can read and
write to them using curl, or still use the browser
but without the extra fat and JS of pastebin.com.


---
Sebastian LaVine | https://smlavine.com
Received on Tue Jul 06 2021 - 02:08:04 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 06 2021 - 02:12:07 CEST