Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vol1-Mod1-Slide12-WyWiWyG #1

Open
BlueSkeye opened this issue Mar 23, 2021 · 2 comments
Open

Vol1-Mod1-Slide12-WyWiWyG #1

BlueSkeye opened this issue Mar 23, 2021 · 2 comments

Comments

@BlueSkeye
Copy link

I feel "decompiled code is identical to the assembly code that you wrote" is sligthly misleading. Both MASM and YASM support macros and equates that are inlined during compilation. Thus, any decompilation process will be unable to recover these syntactic constructions.

@BlueSkeye BlueSkeye changed the title Mod1-Slide12-WyWiWyG Vol1-Mod1-Slide12-WyWiWyG Mar 23, 2021
@hasherezade
Copy link
Owner

hmm, I will think how to rephrase it to make is less misleading. this is quite nuanced - macros are still representation of some block of instruction in pure assembly, which will be the same in output as they were in the input. and this is what I meant: when we write in the pure assembly: we decide which exact register we want to use, etc. it is not something decided for us by the compiler. and this is something important to highlight.

@BlueSkeye
Copy link
Author

Ok. You want to emphasis asm = full processor control VS other languages delegating this control to the compiler. If so, my remark about macros is at least useless and could even be confusing for the reader. I suggest you close this issue and forget about macros in your text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants