אסמבלי ...

DadleFish

New member
הרבה דברים,

שאפשר כמעט תמיד לעשות בדרך יותר אלגנטית - אבל לפעמים זה מאיץ את הביצוע.
 

DadleFish

New member
לא ../images/Emo6.gif

אף פעם לא אהבתי את זה, ולכן אני לא יכול לתת לך דוגמאות. חפש self mutating code בגוגל.
 

DNile

New member
דוגמה?

נסה לכתוב קוד שהבינארי שלו אמור להיות ללא אפסים וללא המספר 34H.
 

nahsh

New member
תוספות

גם אם הצורך בתכנות ממש באסמבלר יורד (בעיקר בגלל מהירות מעבדים גדולה יותר, הוזלה של רכיבי זכרון והקטנה שלהם), עדיין יש הרבה פעמים צורך לפחות להבין את השפה על בוריה, לדוגמא כדי לדבג קוד במערכות real time או embeded. שימוש נוסף יכול להיות בשביל אבטחת מידע, כדי לעשות "דברים משוגעים" ששום שפת תכנות שפויה לא תרשה לבצע. כשנכנסים לעולם הזה - אין כללים וחוקי תכנות שאסור לשבור...
 

benny kl

New member
and more

if you want to know exactly what happens (or allmost) when your program executes or how it is loaded etc. you need assembly. go lower and you need ones and zeros. example: when you write a RT system you need sometimes to know exactly what your compiler is producing. you dont trust the compiler completely, so you need assembly. allso, sometimes the usual programs are too big, and you need a ditetic version, like on embeded systems. assembly can be a choice. check linux assembly for example for uses. and nagoa for win32 nasm(assembly with the nasm assembler) (i hope the site isnt down) to sum it up: assembly is very much alive and will continue to be so as long as there is no lower language. its a tool that is good for certain targets(i wouldnt try to write an accounting program with assembly, but a driver - yes, and sometimes it might be the only option(mmx,simd etc.)) it is most useful for learning whats happening in there. and the most important: it is great fun :)
 

IdanR

New member
כשאתה רוצה ש...

הגודל של הבינארי יהיה קטן בהרבה מהגודל של קובץ קוד המקור. עתיד? אני חושב שזה חשוב לדעת אסמבלי ברמה מסוימת, אתה אף פעם לא יודע מתי תצטרך. זה גם חלק ממבנה המחשב, ומדרכי פעולת המחשב, וחשוב להכיר אותם. עם זאת, אני לא חושב שאפשר להתפרנס ממש רק מאסמבלי בלבד.
 
למעלה