summaryrefslogtreecommitdiff
path: root/device/lib/stm8-large/aligned_alloc.lst
blob: f57dd9e38df9db759118a5fec12b4d94d0a6314d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
                                      1 ;--------------------------------------------------------
                                      2 ; File Created by SDCC : free open source ANSI-C Compiler
                                      3 ; Version 3.9.3 #11345 (Linux)
                                      4 ;--------------------------------------------------------
                                      5 	.module aligned_alloc
                                      6 	.optsdcc -mstm8
                                      7 	
                                      8 ;--------------------------------------------------------
                                      9 ; Public variables in this module
                                     10 ;--------------------------------------------------------
                                     11 	.globl _malloc
                                     12 	.globl _aligned_alloc
                                     13 ;--------------------------------------------------------
                                     14 ; ram data
                                     15 ;--------------------------------------------------------
                                     16 	.area DATA
                                     17 ;--------------------------------------------------------
                                     18 ; ram data
                                     19 ;--------------------------------------------------------
                                     20 	.area INITIALIZED
                                     21 ;--------------------------------------------------------
                                     22 ; absolute external ram data
                                     23 ;--------------------------------------------------------
                                     24 	.area DABS (ABS)
                                     25 
                                     26 ; default segment ordering for linker
                                     27 	.area HOME
                                     28 	.area GSINIT
                                     29 	.area GSFINAL
                                     30 	.area CONST
                                     31 	.area INITIALIZER
                                     32 	.area CODE
                                     33 
                                     34 ;--------------------------------------------------------
                                     35 ; global & static initialisations
                                     36 ;--------------------------------------------------------
                                     37 	.area HOME
                                     38 	.area GSINIT
                                     39 	.area GSFINAL
                                     40 	.area GSINIT
                                     41 ;--------------------------------------------------------
                                     42 ; Home
                                     43 ;--------------------------------------------------------
                                     44 	.area HOME
                                     45 	.area HOME
                                     46 ;--------------------------------------------------------
                                     47 ; code
                                     48 ;--------------------------------------------------------
                                     49 	.area CODE
                                     50 ;	./../../include/stdlib.h: 86: inline void *aligned_alloc(size_t alignment, size_t size)
                                     51 ;	-----------------------------------------
                                     52 ;	 function aligned_alloc
                                     53 ;	-----------------------------------------
      000000                         54 _aligned_alloc:
                                     55 ;	./../../include/stdlib.h: 89: return malloc(size);
      000000 1E 06            [ 2]   56 	ldw	x, (0x06, sp)
      000002 89               [ 2]   57 	pushw	x
      000003 8Ds00r00r00      [ 5]   58 	callf	_malloc
      000007 5B 02            [ 2]   59 	addw	sp, #2
                                     60 ;	./../../include/stdlib.h: 90: }
      000009 87               [ 5]   61 	retf
                                     62 	.area CODE
                                     63 	.area CONST
                                     64 	.area INITIALIZER
                                     65 	.area CABS (ABS)