[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

can you further optimize assembly code by changing the binary

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 9
Thread images: 1

File: 1377269809939.jpg (53KB, 384x480px) Image search: [Google]
1377269809939.jpg
53KB, 384x480px
can you further optimize assembly code by changing the binary directly?

are there any known cases where this was necessary?
>>
Just cut the tire open
>>
>>58314908
1. Hardly
2. Probably

Compilers are really good at writing and opyimizing the ASM for you, so there's very little cases one would benefit from it.
Some trivial (like hello world) or edge case (see 16K demoscene) stuff can be made a fraction smaller/faster by removing the overhead that a compiler would introduce.

Example:
Someone rewrote busybox in ASM, its called asmutils and its reportedly a bit faster and smaller.
>>
>>58314908
it's cut where you can't see
>>
>>58314918
the point is how did it get there in the first place
>>
That road looks like the kind where garbage is always laying everywhere and it never gets cleaned up. I wouldn't be surprised if that tire sat there for as long as the tree has been growing.
>>
>>58317869
Someone cut it. It's cut behind the tree...

:)
>>
Either someone cut it from behind or the tree grew with the tire
>>
OP seems like you're thinking that using a lower level of abstraction will result in better performance.

This is not going to be the case going from asm to machine code (binary). asm has a one to one mapping with your cpu's instruction set. Writing straight machine code will end up with the same result as asm, only it will be much harder to write. It may save you from having to compile but is that really worth it?
Thread posts: 9
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.