🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309248

Re: need a program that will print a percent of code in tehe exe/dll

#309248
From: (fir)
Date: Sun, 30 Apr 2017 08:44
28 lines
2756 bytes
W dniu niedziela, 30 kwietnia 2017 01:18:19 UTC+2 użytkownik Matt D. napisał:
> On 4/29/2017 14:46, (fir) wrote:
> > if you got exe or dll the most important sections are .code .data .const and .bss
> >
> >  need a simple console program that show the size of the code
> > (in bytes and also in percent) in given .exe .dll [also sieze of consts and initialised data, yet size of static arrays]
> 
> Tools:
> GNU Size: https://sourceware.org/binutils/docs/binutils/size.html
> PE Insider: http://cerbero.io/peinsider/
> 
> GNU Size Examples:
> http://www.geeksforgeeks.org/memory-layout-of-c-program/
> ttp://cs-fundamentals.com/c-programming/memory-layout-of-c-program-code-data-segments.php#size-of-code-data-bss-segments
> 
> See also Ange Albertini's work:
> http://i.imgur.com/tnUca.jpg
> https://speakerdeck.com/ange/workshop-exploring-the-portable-executable-format
> https://github.com/corkami/docs/blob/master/PE/PE.md
> https://speakerdeck.com/ange/x86-and-pe
> https://speakerdeck.com/ange/byte-ing-the-pe-that-fails-you
> https://speakerdeck.com/ange/booklet-elf101-a-linux-executable-walkthrough
> 
> Best,
> 
> Matt

ok, tnx moze sie przyda.. niby program napisany na razie a grzebanie w tym pe jest nudne ale jak ktos jest nieskopoziomowym programista windows to nieststy trzeba chyba znac
Technical Details
Message-ID: <720aff2d-5d5c-4104-ba18-6167de325226@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!c45no663273qtb.1!news-out.google.com!x200ni602itb.0!nntp.google.com!c26no1045965itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <624bfa7c-7f80-4bc9-a2cb-7598eab65097@googlegroups.com> <oe36vt$i0q$1@portraits.wsisiz.edu.pl>

Show Full Headers
Complete Article Headers
X-Received: by 10.129.129.71 with SMTP id r68mr9535836ywf.50.1493541889795;        Sun, 30 Apr 2017 01:44:49 -0700 (PDT)
X-Received: by 10.157.60.148 with SMTP id z20mr387394otc.3.1493541889737; Sun, 30 Apr 2017 01:44:49 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!c45no663273qtb.1!news-out.google.com!x200ni602itb.0!nntp.google.com!c26no1045965itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.c
Date: Sun, 30 Apr 2017 01:44:49 -0700 (PDT)
In-Reply-To: <oe36vt$i0q$1@portraits.wsisiz.edu.pl>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.172.255.87; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.87
References: <624bfa7c-7f80-4bc9-a2cb-7598eab65097@googlegroups.com> <oe36vt$i0q$1@portraits.wsisiz.edu.pl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <720aff2d-5d5c-4104-ba18-6167de325226@googlegroups.com>
Subject: Re: need a program that will print a percent of code in tehe exe/dll
From: "(fir)" <profesor.fir@gmail.com>
Injection-Date: Sun, 30 Apr 2017 08:44:49 +0000
Lines: 35
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit