⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bss.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="bss">bss</a>,

Previous:<a rel="previous" accesskey="p" href="Sub-Sections.html#Sub-Sections">Sub-Sections</a>,

Up:<a rel="up" accesskey="u" href="Sections.html#Sections">Sections</a>

<hr><br>

</div>



<h3 class="section">bss Section</h3>



   <p>The bss section is used for local common variable storage. 

You may allocate address space in the bss section, but you may

not dictate data to load into it before your program executes.  When

your program starts running, all the contents of the bss

section are zeroed bytes.



   <p>The <code>.lcomm</code> pseudo-op defines a symbol in the bss section; see

<a href="Lcomm.html#Lcomm"><code>.lcomm</code></a>.



   <p>The <code>.comm</code> pseudo-op may be used to declare a common symbol, which is

another form of uninitialized symbol; see See <a href="Comm.html#Comm"><code>.comm</code></a>.



   <p>When assembling for a target which supports multiple sections, such as ELF or

COFF, you may switch into the <code>.bss</code> section and define symbols as usual;

see <a href="Section.html#Section"><code>.section</code></a>.  You may only assemble zero values into the

section.  Typically the section will only contain symbol definitions and

<code>.skip</code> directives (see <a href="Skip.html#Skip"><code>.skip</code></a>).



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -