Generate code for a PA 1.0 processor.
Generate code for a PA 1.1 processor.
Generate code suitable for big switch tables. Use this option only if the assembler/linker complain about out of range branches within a switch table.
Fill delay slots of function calls with unconditional jump instructions by modifying the return pointer for the function call to be the target of the conditional jump.
Prevent floating point registers from being used in any manner. This is necessary for compiling kernels which perform lazy context switching of floating point registers. If you use this option and attempt to perform floating point operations, the compiler will abort.
Prevent the compiler from using indexing address modes. This avoids some rather obscure problems when compiling MIG generated code under MACH.
Generate code that assumes the target has no space registers.This allows GCC to generate faster indirect calls and use unscaled index address modes. Such code is suitable for level 0 PA systems and kernels.
Generate code that assumes calls never cross space boundaries. This allows GCC to emit code which performs faster indirect calls.This option will not work in the presence of shared libraries or nested functions.
Optimize for space rather than execution time. Currently this only enables out of line function prologues and epilogues. This option is incompatible with PIC code generation and profiling.
Generate 3-instruction load and store sequences as some-times required by the HP/UX 10 linker. This is equivalent to the +k option to the HP compilers.
Use the portable calling conventions proposed by HP for ELF systems.
Enable the use of assembler directives only GAS understands.
Schedule code according to the constraints for the machine type (signified by the cpu type). The choices for cpu type are 700 for 7n0 machines, 7100 for 7n5 machines, and 7100 for 7n2 machines. 7100 is the default for cpu type.
Enable the optimization pass in the HP/UX linker.
Generate output containing library calls for floating point.
The requisite libraries are not available for all HPPA targets. Normally the facilities of the machine's usual C compiler are used, but this cannot be done directly in cross-compilation. You must make your own arrangements to provide suitable library functions for cross-compilation. The embedded target hppa1.1-*-pro does provide software floating point support.
-msoft-float changes the calling convention in the output file; therefore, it is only useful if you compile all of a program with this option. In particular, you need to compile libgcc.a, the library that comes with GCC, with -msoft-float in order for this to work.
Compile using as to assemble GCC output.As a back end for GNU CC ,as has been thoroughly tested and should work extremely well for the HPPA targets. It has been tested only minimally on hand-written assembly code and no one has tested it much on the assembly output from the HP compilers.
The format of the debugging sections has changed since the original as port (version 1.3X) was released; therefore, you must rebuild all HPPA objects and libraries with the new assembler so that you can debug the final executable.
The HPPA as port generates a small subset of the relocations available in the SOM and ELF object file formats. Additional relocation support will be added as it becomes necessary.
as is much less forgiving about missing arguments and other similar oversights than the HP assembler. asnotifies you of missing arguments as syntax errors; this is regarded as a feature, not a bug.
Special characters for HPPA targets include the following.
; is the line comment character.
! can be used instead of a newline to separate statements.
Since $ has no special meaning, you may use it in symbol names.
Finally, asallows
you to use an external symbol without explicitly importing the symbol.
.enter liston
.leave locct
Reserve n-bytes of storage, and initialize them to zero.
Mark the beginning of a procedure call. Only the special case with no arguments is allowed.
Specify a number of parameters and flags that define the environment for a procedure. param may be any of frame (frame size), entry_gr (end of general register range), entry_fr (end of float register range), entry_sr (end of space register range). The values for flag are calls or caller (proc has subroutines), no_calls (proc does not call subroutines), save_rp (preserve return pointer), save_sp (proc preserves stack pointer), no_unwind (do not unwind this proc), hpux_int (proc is interrupt routine).
Assemble into the standard section called $TEXT$, subsection $CODE$.
In the SOM object format, insert string into the object code, marked as a copyright string.
Not yet supported; the assembler rejects programs containing this directive.
Mark the beginning of a procedure.
Mark the end of a procedure.
Make a procedure name available to callers. typ, if present, must be one of absolute, code (ELF only, not SOM), data, entry, data, entry, millicode, plabel, pri_prog, or sec_prog.
param, if present, provides either relocation information for the procedure arguments and result, or a privilege level. parammay be argwn (where n ranges from 0 to 3, and indicates one of four one-word arguments); rtnval (the procedure's result); or priv_lev (privilege level). For arguments or the result, r specifies how to relocate, and must be one of no(not relocatable), gr(argument is in general register), fr(in floating point register), or `fu' (upper half of float register). For priv_lev, r is an integer.
Define a two-byte integer constant n; synonym for the portable as directive, .short.
Converse of .export; make a procedure available to call. The arguments use the same conventions as the first two arguments for .export.
Define name as a label for the current assembly location.
Not yet supported; the assembler rejects programs containing this directive.
Advance location counter to lc. Synonym for the {No value for "as"}portable directive .org.
Similar to .export, but used for static procedures.
Use preceding the first statement of a procedure.
Use following the last statement of a procedure.
Synonym for .equ; define label with the absolute expression, expr, as its value.
Switch to section secnam, creating a new section by that name if necessary. You may only use paramswhen creating a new section, not when switching to an existing one. secnam may identify a section by number rather than by name. If specified, the list params declares attributes of the section, identified by keywords. The keywords recognized are spnum=exp(identify this section by the number, exp, an absolute expression), sort=exp (order sections according to this sort key when linking; exp is an absolute expression), unloadable (section contains no loadable data), notdefined (this section defined elsewhere), and private (data in this section not available to other programs).
Allocate four bytes of storage, and initialize them with the section number of the section named secnam. (You can define the section number with the HPPA .space directive.)
Copy the characters in the string, str, to the object file.
Like .string, but appends a zero byte after copying str to object file.
<canonical triplet> -gdb