You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/inline-assembly.md
+96-99Lines changed: 96 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -486,127 +486,124 @@ The result of using other directives is assembler-specific (and may cause an err
486
486
487
487
The following directives are guaranteed to be supported by the assembler:
488
488
489
-
```as
490
-
.2byte
491
-
.4byte
492
-
.8byte
493
-
.byte
494
-
.short
495
-
.word
496
-
.long
497
-
.quad
498
-
.float
499
-
.double
500
-
.octa
501
-
.sleb128
502
-
.uleb128
503
-
.ascii
504
-
.asciz
505
-
.string
506
-
.skip
507
-
.space
508
-
.balign
509
-
.balignl
510
-
.balignw
511
-
.balign
512
-
.balignl
513
-
.balignw
514
-
.fill
515
-
.section
516
-
.pushsection
517
-
.popsection
518
-
.text
519
-
.bss
520
-
.data
521
-
.def
522
-
.endef
523
-
.scl
524
-
.comm
525
-
.lcomm
526
-
.option
527
-
.equ
528
-
.set
529
-
.align
530
-
.inst
531
-
```
489
+
490
+
-`.2byte`
491
+
-`.4byte`
492
+
-`.8byte`
493
+
-`.byte`
494
+
-`.short`
495
+
-`.word`
496
+
-`.long`
497
+
-`.quad`
498
+
-`.float`
499
+
-`.double`
500
+
-`.octa`
501
+
-`.sleb128`
502
+
-`.uleb128`
503
+
-`.ascii`
504
+
-`.asciz`
505
+
-`.string`
506
+
-`.skip`
507
+
-`.space`
508
+
-`.balign`
509
+
-`.balignl`
510
+
-`.balignw`
511
+
-`.balign`
512
+
-`.balignl`
513
+
-`.balignw`
514
+
-`.fill`
515
+
-`.section`
516
+
-`.pushsection`
517
+
-`.popsection`
518
+
-`.text`
519
+
-`.bss`
520
+
-`.data`
521
+
-`.def`
522
+
-`.endef`
523
+
-`.scl`
524
+
-`.comm`
525
+
-`.lcomm`
526
+
-`.option`
527
+
-`.equ`
528
+
-`.set`
529
+
-`.align`
530
+
-`.inst`
531
+
532
532
533
533
The following directives are guaranteed to be supported for `global_asm` only:
534
-
```as
535
-
.alt_entry
536
-
.private_extern
537
-
.globl
538
-
.global
539
-
```
534
+
535
+
-`.alt_entry`
536
+
-`.private_extern`
537
+
-`.globl`
538
+
-`.global`
539
+
540
540
541
541
#### Target Specific Directive Support
542
542
543
543
##### Dwarf Unwinding
544
544
545
545
The following directives are supported on ELF targets that support DWARF unwind info:
546
546
547
-
```as
548
-
.cfi_adjust_cfa_offset
549
-
.cfi_def_cfa
550
-
.cfi_def_cfa_offset
551
-
.cfi_def_cfa_register
552
-
.cfi_endproc
553
-
.cfi_escape
554
-
.cfi_lsda
555
-
.cfi_offset
556
-
.cfi_personality
557
-
.cfi_register
558
-
.cfi_rel_offset
559
-
.cfi_remember_state
560
-
.cfi_restore
561
-
.cfi_restore_state
562
-
.cfi_return_column
563
-
.cfi_same_value
564
-
.cfi_sections
565
-
.cfi_signal_frame
566
-
.cfi_startproc
567
-
.cfi_undefined
568
-
.cfi_window_save
569
-
```
547
+
548
+
-`.cfi_adjust_cfa_offset`
549
+
-`.cfi_def_cfa`
550
+
-`.cfi_def_cfa_offset`
551
+
-`.cfi_def_cfa_register`
552
+
-`.cfi_endproc`
553
+
-`.cfi_escape`
554
+
-`.cfi_lsda`
555
+
-`.cfi_offset`
556
+
-`.cfi_personality`
557
+
-`.cfi_register`
558
+
-`.cfi_rel_offset`
559
+
-`.cfi_remember_state`
560
+
-`.cfi_restore`
561
+
-`.cfi_restore_state`
562
+
-`.cfi_return_column`
563
+
-`.cfi_same_value`
564
+
-`.cfi_sections`
565
+
-`.cfi_signal_frame`
566
+
-`.cfi_startproc`
567
+
-`.cfi_undefined`
568
+
-`.cfi_window_save`
569
+
570
570
571
571
##### Structured Exception Handling
572
572
573
573
On targets with structured exception Handling, the following additional directives are guaranteed to be supported:
574
-
```as
575
-
.seh_endproc
576
-
.seh_endprologue
577
-
.seh_proc
578
-
.seh_pushreg
579
-
.seh_savereg
580
-
.seh_setframe
581
-
.seh_stackalloc
582
-
```
574
+
575
+
-`.seh_endproc`
576
+
-`.seh_endprologue`
577
+
-`.seh_proc`
578
+
-`.seh_pushreg`
579
+
-`.seh_savereg`
580
+
-`.seh_setframe`
581
+
-`.seh_stackalloc`
582
+
583
583
584
584
##### x86
585
585
586
586
On x86, the following additional directives are guaranteed to be supported:
587
-
```as
588
-
.nops
589
-
```
587
+
-`.nops`
590
588
591
589
On x86 for `global_asm!` only, the following additional directives are guaranteed to be supported (it is unspecified whether `.code16` or `.code32` are supported for `asm!()`):
592
-
```as
593
-
.code16
594
-
.code32
595
-
```
590
+
591
+
-`.code16`
592
+
-`.code32`
593
+
596
594
597
595
##### ARM
598
596
599
597
On ARM for `global_asm!` only, the following additional directives are guaranteed to be supported:
600
-
```as
601
-
.code
602
-
.thumb
603
-
.thumb_func
604
-
```
598
+
599
+
-`.code`
600
+
-`.thumb`
601
+
-`.thumb_func`
602
+
605
603
606
604
On ARM, the following additional directives are guaranteed to be supported:
0 commit comments