flat assembler
Message board for the users of flat assembler.
Index
> Main > local variables |
Author |
|
Mentol 08 Jun 2006, 22:20
and second question:
how i can setup ALIGN parameter (for EXE), to get size of EXE less that 2.048 bytes for example? (visual studio link.exe linker can parse /align:... parameter) iam russian sorry for bad eng ) |
|||
08 Jun 2006, 22:20 |
|
Reverend 08 Jun 2006, 22:58
Manual wrote: To declare the local variable you can use the local macroinstruction, followed by one or more declarations separated with commas, each one consisting of the name for variable followed by colon and the type of variable – either one of the standard types (must be upper case) or the name of data structure. For example: And the second question. Fasm doesn't allow changing that align value. MS Linker will create a file with it changed, but it won't execute. The only files with smaller align values (ie. smaller than the value which fasm defaults) can be drivers. Fasm puts a value which is the smallest possible for executables and dlls. |
|||
08 Jun 2006, 22:58 |
|
Quantum 09 Jun 2006, 02:11
Quote:
You can compile your sources to MS COFF object format (luckily FASM supports MS COFF output) and then use link.exe to build the final exe, which won't run, as Reverend already explained. A bit of additional info (from a Matt Pietrek's article): Quote:
ЗЫ: А тут вообще много русских, кажется |
|||
09 Jun 2006, 02:11 |
|
Mentol 09 Jun 2006, 12:28
thanks
> ЗЫ: А тут вообще много русских, кажется много) |
|||
09 Jun 2006, 12:28 |
|
Vasilev Vjacheslav 09 Jun 2006, 16:37
как китайцев
|
|||
09 Jun 2006, 16:37 |
|
dead_body 10 Jun 2006, 15:19
больше
|
|||
10 Jun 2006, 15:19 |
|
f0dder 10 Jun 2006, 19:01
For the MS linker, use /FILEALIGN instead of /ALIGN.
|
|||
10 Jun 2006, 19:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.