*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> genassym.sh (8)              
Title
Content
Arch
Section
 

GENASSYM.SH(8)

Contents


NAME    [Toc]    [Back]

     genassym.sh - emit an assym.h file

SYNOPSIS    [Toc]    [Back]

     sh genassym.sh [-c] C compiler invocation

DESCRIPTION    [Toc]    [Back]

     genassym.sh is a shell script normally used during the  kernel build process
  to create an assym.h file.  This file defines a number
of cpp constants
   derived   from   the   configuration    information
genassym.sh reads from
     stdin.  The generated file is used by kernel sources written
in assembler
     to gain access to information (e.g.  structure  offsets  and
sizes) normally
     only known to the C compiler.

     genassym.sh  resides  in the /sys/kern directory.  Arguments
to genassym.sh
     are usually of the form ${CC}  ${CFLAGS}  ${CPPFLAGS}  where
${CC} is the C
     compiler  used  to  compile  the kernel, while ${CFLAGS} and
${CPPFLAGS} are
     flag arguments to the C compiler.  The script  creates  a  C
source file
     from  its input.  Then the C compiler is called according to
the script's
     arguments to compile this file.

     Normally genassym.sh instructs the C compiler to  create  an
assembler
     source from the constructed C source.  The resulting file is
then processed
 to extract the information needed to create  the  assym.h file.  The
     -c  flag  instructs genassym.sh to create slightly different
code, generate
     an executable from this code and run it.  In both cases  the
assym.h file
     is written to stdout.

DIAGNOSTICS    [Toc]    [Back]

     Either self-explanatory, or generated by one of the programs
called from
     the script.  The script will exit with the return code  from
the compiler,
     or,  in the -c case, with the return code from the generated
executable.

SEE ALSO    [Toc]    [Back]

      
      
     genassym.cf(5)

HISTORY    [Toc]    [Back]

     The genassym.sh script first appeared in OpenBSD 2.2.

OpenBSD     3.6                        January      25,      1997
[ Back ]
 Similar pages
Name OS Title
genassym.cf OpenBSD assym.h definition file
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
migrate Tru64 Move a file or file pages to another volume in an AdvFS file domain
ffm Tru64 File-on-File Mounting File System
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
ff_vxfs HP-UX fast find: list file names and statistics for a VxFS file system
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
cmstif2jpg IRIX reformat TIFF image file as JPEG file, maintains profile tag
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service