Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / stabs / Assembly-Code.html
blob3de1ebe7fe3dd0a601a515ba0e84e3dee6815684
1 <html lang="en">
2 <head>
3 <title>STABS</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="STABS">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Assembly%20Code">Assembly Code</a>,
13 Previous:<a rel="previous" accesskey="p" href="C-Example.html#C%20Example">C Example</a>,
14 Up:<a rel="up" accesskey="u" href="Overview.html#Overview">Overview</a>
15 <hr><br>
16 </div>
18 <h3 class="section">The Simple Example at the Assembly Level</h3>
20 <p>This simple "hello world" example demonstrates several of the stab
21 types used to describe C language source files.
23 <pre class="example"> 1 gcc2_compiled.:
24 2 .stabs "/cygint/s1/users/jcm/play/",100,0,0,Ltext0
25 3 .stabs "hello.c",100,0,0,Ltext0
26 4 .text
27 5 Ltext0:
28 6 .stabs "int:t1=r1;-2147483648;2147483647;",128,0,0,0
29 7 .stabs "char:t2=r2;0;127;",128,0,0,0
30 8 .stabs "long int:t3=r1;-2147483648;2147483647;",128,0,0,0
31 9 .stabs "unsigned int:t4=r1;0;-1;",128,0,0,0
32 10 .stabs "long unsigned int:t5=r1;0;-1;",128,0,0,0
33 11 .stabs "short int:t6=r1;-32768;32767;",128,0,0,0
34 12 .stabs "long long int:t7=r1;0;-1;",128,0,0,0
35 13 .stabs "short unsigned int:t8=r1;0;65535;",128,0,0,0
36 14 .stabs "long long unsigned int:t9=r1;0;-1;",128,0,0,0
37 15 .stabs "signed char:t10=r1;-128;127;",128,0,0,0
38 16 .stabs "unsigned char:t11=r1;0;255;",128,0,0,0
39 17 .stabs "float:t12=r1;4;0;",128,0,0,0
40 18 .stabs "double:t13=r1;8;0;",128,0,0,0
41 19 .stabs "long double:t14=r1;8;0;",128,0,0,0
42 20 .stabs "void:t15=15",128,0,0,0
43 21 .align 4
44 22 LC0:
45 23 .ascii "Hello, world!\12\0"
46 24 .align 4
47 25 .global _main
48 26 .proc 1
49 27 _main:
50 28 .stabn 68,0,4,LM1
51 29 LM1:
52 30 !#PROLOGUE# 0
53 31 save %sp,-136,%sp
54 32 !#PROLOGUE# 1
55 33 call ___main,0
56 34 nop
57 35 .stabn 68,0,5,LM2
58 36 LM2:
59 37 LBB2:
60 38 sethi %hi(LC0),%o1
61 39 or %o1,%lo(LC0),%o0
62 40 call _printf,0
63 41 nop
64 42 .stabn 68,0,6,LM3
65 43 LM3:
66 44 LBE2:
67 45 .stabn 68,0,6,LM4
68 46 LM4:
69 47 L1:
70 48 ret
71 49 restore
72 50 .stabs "main:F1",36,0,0,_main
73 51 .stabn 192,0,0,LBB2
74 52 .stabn 224,0,0,LBE2
75 </pre>
77 </body></html>