PageRenderTime 62ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/share/doc/stabs/Assembly-Code.html

https://gitlab.com/infected_/linaro_arm-linux-android-5.3.x
HTML | 133 lines | 87 code | 9 blank | 37 comment | 0 complexity | 5f8cae98383764a6cff4ce97b7e3ba49 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1992-2015 Free Software Foundation, Inc.
  4. Contributed by Cygnus Support. Written by Julia Menapace, Jim Kingdon,
  5. and David MacKenzie.
  6. Permission is granted to copy, distribute and/or modify this document
  7. under the terms of the GNU Free Documentation License, Version 1.3 or
  8. any later version published by the Free Software Foundation; with no
  9. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  10. Texts. A copy of the license is included in the section entitled "GNU
  11. Free Documentation License". -->
  12. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>STABS: Assembly Code</title>
  15. <meta name="description" content="STABS: Assembly Code">
  16. <meta name="keywords" content="STABS: Assembly Code">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="Symbol-Types-Index.html#Symbol-Types-Index" rel="index" title="Symbol Types Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="Overview.html#Overview" rel="up" title="Overview">
  25. <link href="Program-Structure.html#Program-Structure" rel="next" title="Program Structure">
  26. <link href="C-Example.html#C-Example" rel="prev" title="C Example">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style:oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="Assembly-Code"></a>
  58. <div class="header">
  59. <p>
  60. Previous: <a href="C-Example.html#C-Example" accesskey="p" rel="prev">C Example</a>, Up: <a href="Overview.html#Overview" accesskey="u" rel="up">Overview</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Symbol-Types-Index.html#Symbol-Types-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="The-Simple-Example-at-the-Assembly-Level"></a>
  64. <h3 class="section">1.5 The Simple Example at the Assembly Level</h3>
  65. <p>This simple &ldquo;hello world&rdquo; example demonstrates several of the stab
  66. types used to describe C language source files.
  67. </p>
  68. <div class="example">
  69. <pre class="example">1 gcc2_compiled.:
  70. 2 .stabs &quot;/cygint/s1/users/jcm/play/&quot;,100,0,0,Ltext0
  71. 3 .stabs &quot;hello.c&quot;,100,0,0,Ltext0
  72. 4 .text
  73. 5 Ltext0:
  74. 6 .stabs &quot;int:t1=r1;-2147483648;2147483647;&quot;,128,0,0,0
  75. 7 .stabs &quot;char:t2=r2;0;127;&quot;,128,0,0,0
  76. 8 .stabs &quot;long int:t3=r1;-2147483648;2147483647;&quot;,128,0,0,0
  77. 9 .stabs &quot;unsigned int:t4=r1;0;-1;&quot;,128,0,0,0
  78. 10 .stabs &quot;long unsigned int:t5=r1;0;-1;&quot;,128,0,0,0
  79. 11 .stabs &quot;short int:t6=r1;-32768;32767;&quot;,128,0,0,0
  80. 12 .stabs &quot;long long int:t7=r1;0;-1;&quot;,128,0,0,0
  81. 13 .stabs &quot;short unsigned int:t8=r1;0;65535;&quot;,128,0,0,0
  82. 14 .stabs &quot;long long unsigned int:t9=r1;0;-1;&quot;,128,0,0,0
  83. 15 .stabs &quot;signed char:t10=r1;-128;127;&quot;,128,0,0,0
  84. 16 .stabs &quot;unsigned char:t11=r1;0;255;&quot;,128,0,0,0
  85. 17 .stabs &quot;float:t12=r1;4;0;&quot;,128,0,0,0
  86. 18 .stabs &quot;double:t13=r1;8;0;&quot;,128,0,0,0
  87. 19 .stabs &quot;long double:t14=r1;8;0;&quot;,128,0,0,0
  88. 20 .stabs &quot;void:t15=15&quot;,128,0,0,0
  89. 21 .align 4
  90. 22 LC0:
  91. 23 .ascii &quot;Hello, world!\12\0&quot;
  92. 24 .align 4
  93. 25 .global _main
  94. 26 .proc 1
  95. 27 _main:
  96. 28 .stabn 68,0,4,LM1
  97. 29 LM1:
  98. 30 !#PROLOGUE# 0
  99. 31 save %sp,-136,%sp
  100. 32 !#PROLOGUE# 1
  101. 33 call ___main,0
  102. 34 nop
  103. 35 .stabn 68,0,5,LM2
  104. 36 LM2:
  105. 37 LBB2:
  106. 38 sethi %hi(LC0),%o1
  107. 39 or %o1,%lo(LC0),%o0
  108. 40 call _printf,0
  109. 41 nop
  110. 42 .stabn 68,0,6,LM3
  111. 43 LM3:
  112. 44 LBE2:
  113. 45 .stabn 68,0,6,LM4
  114. 46 LM4:
  115. 47 L1:
  116. 48 ret
  117. 49 restore
  118. 50 .stabs &quot;main:F1&quot;,36,0,0,_main
  119. 51 .stabn 192,0,0,LBB2
  120. 52 .stabn 224,0,0,LBE2
  121. </pre></div>
  122. </body>
  123. </html>