الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

تصغير حجم البرنامج

مغلق
بدأه v1r05 في 9 سبتمبر 2004 · 4 رد · 481 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

هل تريد أن تجعل حم برنامجك صغير :-

ضع السطر إلى برنامجك سيصغر على الأقل 5 Kb

#pragma comment(linker,"/ALIGN:512")

أو

#pragma comment(linker,"/FILEALIGN:0x200")

وبعد ذلك صغره زيادة ببرنامج اسمه UPX

يمكنك أن تجده هنا http://upx.sourceforge.net/download/upx125w.zip

بهذا كله لم أستطع أن أنزل تحت 10 كيلوبايت هل أحد استطاع أن ينزل أكثر؟

#2

ممكن شرح الكودين دول بيعملوا اية داخل الجهاز علشان يصغر البرنامج

لا اله الا الله .......................................... محمد رسول الله

#3

it changes the file padding in the virtual memory to 1\2 kilobyte from a default 4 kb and that will reduce ur application from 20% all the way to 70%

#4

أيضا ً توضيح أكثر :-

The argument can be made that doing this is a waste of time, since the "zero bytes"

will be compressed out in a zip file or install archive. Not really - it doesn't matter

if the data is a string of zeroes or ones or 85858585 - it will still take room (20 bytes

in a zip file, 29 bytes if only *4* of them 4k bytes are not the same) and time to

compress that data and decompress it. Also, 20k of zeros is NOT 20k on disk - it's the

size of the cluster slop- for Fat32 systems, 20k can be 32k, NTFS could make it 24k if you're

just 1 byte over (round up). Most end users do not have the dual P4 Xeon systems with

two gigs of RDram and a Raid 0+1 of Western Digital 120meg Special Editions that all

worthy developers have (all six of us), so they will need any space and LOADING TIME

savings they will need; taking an extra 32k or more out of your end user's 64megs of

ram on Windows 98 is Not a Good Thing.

ما أقدر أترجمها بالعربي

#5

شكرا مان

لا اله الا الله .......................................... محمد رسول الله

هذا الموضوع مغلق.

مواضيع مشابهة