GENASSYM.SH(8)          NetBSD System Manager's Manual          GENASSYM.SH(8)

NNAAMMEE
     ggeennaassssyymm..sshh - emit an assym.h file

SSYYNNOOPPSSIISS
     sshh ggeennaassssyymm..sshh [--cc] _C _c_o_m_p_i_l_e_r _i_n_v_o_c_a_t_i_o_n

DDEESSCCRRIIPPTTIIOONN
     ggeennaassssyymm..sshh is a shell script normally used during the kernel build pro-
     cess to create an assym.h file.  This file defines a number of cpp con-
     stants derived from the configuration information ggeennaassssyymm..sshh 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.  ggeennaassssyymm..sshh resides in the _/_s_y_s_/_k_e_r_n di-
     rectory. Arguments to ggeennaassssyymm..sshh are usually of the form _$_{_C_C_} _$_{_C_F_L_A_G_S_}
     _$_{_C_P_P_F_L_A_G_S_} where _$_{_C_C_} is the C compiler used to compile the kernel,
     while _$_{_C_F_L_A_G_S_} and _$_{_C_P_P_F_L_A_G_S_} 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
     ggeennaassssyymm..sshh 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c flag instructs
     ggeennaassssyymm..sshh 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.

DDIIAAGGNNOOSSTTIICCSS
     Either self-explanatory, or generated by one of the programs called from
     the script.

SSEEEE AALLSSOO
     genassym.cf(5),

HHIISSTTOORRYY
     The ggeennaassssyymm..sshh command appeared in NetBSD 1.2B.

NetBSD                           Jan 25, 1997                                1
