Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Add stack-cleaning compiler wrappers
[simgrid.git] / tools / stack-cleaner / README
1 Provides stack-cleaning compilers for x86_64:
2
3  * as
4  * cc
5  * c++
6
7 Each of them modify the generated/given X86_64 assembly by prepending
8 stack-cleanup code to each function:
9
10         movq $QSIZE, %r11
11 .Lloop:
12         movq $0, OFFSET(%rsp,%r11,8)
13         subq $1, %r11
14         jne  .Lloop
15
16 The modification of the assembly is done by the clean-stack-filter
17 program.
18
19 If the underlying compiler is clang, it might be necessary to add the
20 -no-integrated-as flag in order to force the usage of an external
21 assembler.