What is macros ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What is macros ?

3rd Jan 2020, 4:39 PM
Pankaj
Pankaj - avatar
2 Antworten
+ 11
Macros are the preprocessor definitions (literals). #define EXAMPLE value
3rd Jan 2020, 5:03 PM
Valen.H. ~
Valen.H. ~ - avatar
0
Here is how it works: when u want print variable or macro that equals 1234 disassmebly: with variable: mov [ebp+var], 1234 mov esi, esp mov eax, [ebp+var] push eax call printf with macro: push 1234 call printf
3rd Jan 2020, 6:41 PM
Jakub Havlicek
Jakub Havlicek - avatar