1 .\" $NetBSD: genassym.cf.5,v 1.11 2005/09/11 23:32:48 wiz Exp $
3 .\" Copyright (c) 1997 Matthias Pfaller.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 .Nd assym.h definition file
37 to make constant C expressions known to assembler source files.
38 Lines starting with '#' are discarded by
47 are preceded with '#' and passed otherwise unmodified to the C compiler.
50 get passed on with the
53 The first word after a
55 command is taken as a CPP identifier and the rest of the line has to be
56 a constant C expression. The output of
58 will assign the numerical value of this expression to the CPP identifier.
66 .Em "define X_SIZEOF sizeof(X)" .
69 .Em "define X offsetof(\*[Lt]last struct\*[Gt], X)" .
70 .Em "config \*[Lt]ctype\*[Gt] \*[Lt]gcc constraint\*[Gt] \*[Lt]asm print modifier\*[Gt]"
71 can be used to customize the output of
73 When producing C output, values are casted to \*[Lt]ctype\*[Gt] (default: long)
74 before they get handed to printf. \*[Lt]gcc constraint\*[Gt] (default: n) is the
75 constraint used in the __asm__ statements. \*[Lt]asm print modifier\*[Gt] (default:
76 empty) can be used to force gcc to output operands in different ways
77 then normal. The "a" modifier e.g. stops gcc from emitting immediate
78 prefixes in front of constants for the i386 and m68k port.
80 .Pa /usr/src/sys/arch/${MACHINE}/${MACHINE}/genassym.cf