1 1.1.1.10 christos @c Copyright (C) 2009-2026 Free Software Foundation, Inc. 2 1.1 christos @c This is part of the GAS manual. 3 1.1 christos @c For copying conditions, see the file as.texinfo. 4 1.1 christos @ifset GENERIC 5 1.1 christos @page 6 1.1 christos @node SCORE-Dependent 7 1.1 christos @chapter SCORE Dependent Features 8 1.1 christos @end ifset 9 1.1 christos @ifclear GENERIC 10 1.1 christos @node Machine Dependencies 11 1.1 christos @chapter SCORE Dependent Features 12 1.1 christos @end ifclear 13 1.1 christos 14 1.1 christos @cindex SCORE processor 15 1.1 christos @menu 16 1.1 christos * SCORE-Opts:: Assembler options 17 1.1 christos * SCORE-Pseudo:: SCORE Assembler Directives 18 1.1.1.2 christos * SCORE-Syntax:: Syntax 19 1.1 christos @end menu 20 1.1 christos 21 1.1.1.3 christos @node SCORE-Opts 22 1.1 christos @section Options 23 1.1 christos 24 1.1 christos @cindex options for SCORE 25 1.1 christos @cindex SCORE options 26 1.1 christos @cindex architectures, SCORE 27 1.1 christos @cindex SCORE architectures 28 1.1 christos 29 1.1 christos The following table lists all available SCORE options. 30 1.1 christos 31 1.1 christos @table @code 32 1.1 christos @item -G @var{num} 33 1.1 christos This option sets the largest size of an object that can be referenced 34 1.1 christos implicitly with the @code{gp} register. The default value is 8. 35 1.1 christos 36 1.1 christos @item -EB 37 1.1 christos Assemble code for a big-endian cpu 38 1.1 christos 39 1.1.1.3 christos @item -EL 40 1.1 christos Assemble code for a little-endian cpu 41 1.1 christos 42 1.1.1.3 christos @item -FIXDD 43 1.1 christos Assemble code for fix data dependency 44 1.1 christos 45 1.1.1.3 christos @item -NWARN 46 1.1 christos Assemble code for no warning message for fix data dependency 47 1.1 christos 48 1.1 christos @item -SCORE5 49 1.1 christos Assemble code for target is SCORE5 50 1.1 christos 51 1.1.1.3 christos @item -SCORE5U 52 1.1 christos Assemble code for target is SCORE5U 53 1.1 christos 54 1.1.1.3 christos @item -SCORE7 55 1.1 christos Assemble code for target is SCORE7, this is default setting 56 1.1 christos 57 1.1.1.3 christos @item -SCORE3 58 1.1 christos Assemble code for target is SCORE3 59 1.1 christos 60 1.1 christos @item -march=score7 61 1.1 christos Assemble code for target is SCORE7, this is default setting 62 1.1 christos 63 1.1 christos @item -march=score3 64 1.1 christos Assemble code for target is SCORE3 65 1.1 christos 66 1.1.1.3 christos @item -USE_R1 67 1.1 christos Assemble code for no warning message when using temp register r1 68 1.1 christos 69 1.1 christos @item -KPIC 70 1.1 christos Generate code for PIC. This option tells the assembler to generate 71 1.1 christos score position-independent macro expansions. It also tells the 72 1.1 christos assembler to mark the output file as PIC. 73 1.1 christos 74 1.1 christos @item -O0 75 1.1 christos Assembler will not perform any optimizations 76 1.1 christos 77 1.1.1.3 christos @item -V 78 1.1 christos Sunplus release version 79 1.1 christos 80 1.1 christos @end table 81 1.1 christos 82 1.1 christos @node SCORE-Pseudo 83 1.1 christos @section SCORE Assembler Directives 84 1.1 christos 85 1.1 christos @cindex directives for SCORE 86 1.1 christos @cindex SCORE directives 87 1.1 christos A number of assembler directives are available for SCORE. The 88 1.1 christos following table is far from complete. 89 1.1 christos 90 1.1 christos @table @code 91 1.1.1.3 christos @item .set nwarn 92 1.1.1.3 christos Let the assembler not to generate warnings if the source machine 93 1.1 christos language instructions happen data dependency. 94 1.1 christos 95 1.1.1.3 christos @item .set fixdd 96 1.1.1.3 christos Let the assembler to insert bubbles (32 bit nop instruction / 97 1.1.1.3 christos 16 bit nop! Instruction) if the source machine language instructions 98 1.1 christos happen data dependency. 99 1.1 christos 100 1.1.1.3 christos @item .set nofixdd 101 1.1.1.3 christos Let the assembler to generate warnings if the source machine 102 1.1 christos language instructions happen data dependency. (Default) 103 1.1 christos 104 1.1 christos @item .set r1 105 1.1.1.3 christos Let the assembler not to generate warnings if the source program 106 1.1.1.3 christos uses r1. allow user to use r1 107 1.1 christos 108 1.1 christos @item set nor1 109 1.1 christos Let the assembler to generate warnings if the source program uses 110 1.1 christos r1. (Default) 111 1.1 christos 112 1.1 christos @item .sdata 113 1.1.1.3 christos Tell the assembler to add subsequent data into the sdata section 114 1.1 christos 115 1.1 christos @item .rdata 116 1.1 christos Tell the assembler to add subsequent data into the rdata section 117 1.1 christos 118 1.1 christos @item .frame "frame-register", "offset", "return-pc-register" 119 1.1.1.3 christos Describe a stack frame. "frame-register" is the frame register, 120 1.1.1.3 christos "offset" is the distance from the frame register to the virtual 121 1.1.1.3 christos frame pointer, "return-pc-register" is the return program register. 122 1.1.1.3 christos You must use ".ent" before ".frame" and only one ".frame" can be 123 1.1.1.3 christos used per ".ent". 124 1.1 christos 125 1.1 christos @item .mask "bitmask", "frameoffset" 126 1.1.1.3 christos Indicate which of the integer registers are saved in the current 127 1.1.1.3 christos function's stack frame, this is for the debugger to explain the 128 1.1 christos frame chain. 129 1.1 christos 130 1.1 christos @item .ent "proc-name" 131 1.1.1.3 christos Set the beginning of the procedure "proc_name". Use this directive 132 1.1.1.3 christos when you want to generate information for the debugger. 133 1.1 christos 134 1.1 christos @item .end proc-name 135 1.1.1.3 christos Set the end of a procedure. Use this directive to generate information 136 1.1.1.3 christos for the debugger. 137 1.1 christos 138 1.1 christos @item .bss 139 1.1.1.3 christos Switch the destination of following statements into the bss section, 140 1.1.1.3 christos which is used for data that is uninitialized anywhere. 141 1.1 christos 142 1.1 christos @end table 143 1.1.1.2 christos 144 1.1.1.2 christos @node SCORE-Syntax 145 1.1.1.2 christos @section SCORE Syntax 146 1.1.1.2 christos @menu 147 1.1.1.2 christos * SCORE-Chars:: Special Characters 148 1.1.1.2 christos @end menu 149 1.1.1.2 christos 150 1.1.1.2 christos @node SCORE-Chars 151 1.1.1.2 christos @subsection Special Characters 152 1.1.1.2 christos 153 1.1.1.2 christos @cindex line comment character, SCORE 154 1.1.1.2 christos @cindex SCORE line comment character 155 1.1.1.2 christos The presence of a @samp{#} appearing anywhere on a line indicates the 156 1.1.1.2 christos start of a comment that extends to the end of that line. 157 1.1.1.2 christos 158 1.1.1.2 christos If a @samp{#} appears as the first character of a line then the whole 159 1.1.1.2 christos line is treated as a comment, but in this case the line can also be a 160 1.1.1.2 christos logical line number directive (@pxref{Comments}) or a preprocessor 161 1.1.1.2 christos control command (@pxref{Preprocessing}). 162 1.1.1.2 christos 163 1.1.1.2 christos @cindex line separator, SCORE 164 1.1.1.2 christos @cindex statement separator, SCORE 165 1.1.1.2 christos @cindex SCORE line separator 166 1.1.1.2 christos The @samp{;} character can be used to separate statements on the same 167 1.1.1.2 christos line. 168