From ac474a281204fbbc5cfa817106c0b4c745240f18 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 6 Oct 2013 00:10:45 +0200 Subject: 'noStackFrame' implies 'naked' in the generated C code --- doc/manual.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/manual.txt b/doc/manual.txt index 905b80a18..29b51321e 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -4671,8 +4671,10 @@ NoStackFrame pragma ------------------- A proc can be marked with the `noStackFrame`:idx: pragma to tell the compiler it should not generate a stack frame for the proc. There are also no exit -statements like ``return result;`` generated. This is useful for procs that -only consist of an assembler statement. +statements like ``return result;`` generated and the generated C function is +declared as ``__declspec(naked)`` or ``__attribute__((naked))`` (depending on +the used C compiler). This is useful for procs that only consist of an +assembler statement. error pragma -- cgit 1.4.1-2-gfad0 ry contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/tests/async/t6846.nim
blob: 687a3f86543870107ec6d8c9446cf13cdaa5249f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16