GENASSYM.CF(5)
π NAME π
genassym.cf β assym.h definition file. and yes bestie, this is the genassym.cf(5) page from the File Formats Manual β we are literally in the right place. π«Ά
β¨ DESCRIPTION β¨
okay so picture this: genassym.cf is the file that genassym(1) uses to make constant C expressions known to assembler source files. lowkey iconic. πΈ
Here's the vibe check on how lines get treated:
- Lines starting with
#are discarded bygenassym(1). bye felicia. π - Lines starting with
include,ifdef,if,elseorendifare preceded with#and passed otherwise unmodified to the C compiler. - Lines starting with
quoteget passed on with thequotecommand removed.
And here are the commands doing their main character thing:
- The first word after a
definecommand is taken as a CPP identifier, and the rest of the line has to be a constant C expression. The output ofgenassym(1)will assign the numerical value of this expression to the CPP identifier. β¨ export Xis a shorthand fordefine X X.struct XremembersXfor themembercommand and does adefine X_SIZEOF sizeof(X).member Xdoes adefine X offsetof(<last struct>, X).config <ctype> <gcc constraint> <asm print modifier>can be used to customize the output ofgenassym(1).
When producing C output, values are casted to <ctype> (default: long) before they get handed to printf. <gcc constraint> (default: n) is the constraint used in the __asm__ statements. <asm print modifier> (default: empty) can be used to force gcc to output operands in different ways then normal. The "a" modifier e.g. stops gcc from emitting immediate prefixes in front of constants for the i386 and m68k port. π₯
π FILES π
/usr/src/sys/arch/${MACHINE}/${MACHINE}/genassym.cf
π¦ SEE ALSO π¦
π HISTORY π
The genassym.cf file appeared in NetBSD 1.3. π
okay bye bestie β this page is from Debian, dated August 18, 2005, and it's literally the GENASSYM.CF(5) manual. periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 1997 Matthias Pfaller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms