/
StackCrossRaspbianFastBltConfig.class.st
239 lines (169 loc) · 5.03 KB
/
StackCrossRaspbianFastBltConfig.class.st
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
"
This is a concrete class which generates a StackVM for Raspbian (debian on RaspberryPi). But in cross compilation usage.
Usage:
StackCrossRaspbianFastBltConfig generateWithSources
Fore more information, check the class comments of all the superclasses.
"
Class {
#name : #StackCrossRaspbianFastBltConfig,
#superclass : #StackCrossRaspbianConfig,
#category : #'CMakeVMMaker-Unix'
}
{ #category : #'as yet unclassified' }
StackCrossRaspbianFastBltConfig >> commonCompilerFlags [
^ super commonCompilerFlags, { '-DENABLE_FAST_BLT' }.
]
{ #category : #'as yet unclassified' }
StackCrossRaspbianFastBltConfig >> compilerFlagsDebug [
^ {
'-g3'.
'-D_GNU_SOURCE'.
'-DITIMER_HEARTBEAT=1'.
'-DNO_VM_PROFILE=1'.
'-DDEBUGVM=1' }
]
{ #category : #'as yet unclassified' }
StackCrossRaspbianFastBltConfig >> compilerFlagsRelease [
"
THIS FLAGS ARE CRASHING COMPILER
-fschedule-insns2
-fschedule-insns
THIS FLAGS ARE CRASHING VM
-ftree-pre
-fcaller-saves
THIS FLAGS ARE WORKING
-O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -frerun-cse-after-loop -freorder-functions -fsched-interblock -fsched-spec -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -ftree-vrp
THIS IS LIKE: -O2 -fno-tree-pre -fno-caller-saves
"
^ {
'-g0'.
'-D_GNU_SOURCE'.
'-DNDEBUG'.
'-DITIMER_HEARTBEAT=1'.
'-DNO_VM_PROFILE=1'.
'-DDEBUGVM=0' }
]
{ #category : #'as yet unclassified' }
StackCrossRaspbianFastBltConfig >> configH [
" right now its like that "
^ '
#ifndef __sq_config_h
#define __sq_config_h
/* explicit image width */
#define HAVE_INTERP_H 1
/* package options */
#define USE_X11 1
#define USE_X11_GLX 1
/* #undef USE_QUARTZ */
/* #undef USE_QUARTZ_CGL */
/* #undef USE_RFB */
/* libraries */
/* #undef HAVE_LIBX11 */
/* #undef HAVE_LIBXEXT */
#define HAVE_LIBDL 1
/* #undef HAVE_DYLD */
/* #undef HAVE_LIBFFI */
/* #undef HAVE_ICONV */
/* #undef USE_AUDIO_NONE */
/* #undef USE_AUDIO_SUN */
/* #undef USE_AUDIO_NAS */
/* #undef USE_AUDIO_OSS */
/* #undef USE_AUDIO_MACOSX */
/* #undef OSS_DEVICE */
/* header files */
#define HAVE_UNISTD_H 1
/* #undef NEED_GETHOSTNAME_P */
#define HAVE_DIRENT_H 1
/* #undef HAVE_SYS_NDIR_H */
/* #undef HAVE_SYS_DIR_H */
/* #undef HAVE_NDIR_H */
#define HAVE_DLFCN_H 1
#define HAVE_ICONV_H 1
#define HAVE_SYS_TIME_H 1
#define TIME_WITH_SYS_TIME 1
/* #undef HAVE_SYS_FILIO_H */
/* #undef HAVE_SYS_AUDIOIO_H */
/* #undef HAVE_SUN_AUDIOIO_H */
#define HAVE_PTY_H 1
/* #undef HAVE_UTIL_H */
/* #undef HAVE_LIBUTIL_H */
#define HAVE_STROPTS_H 1
#define HAVE_GL_GL_H 1
/* #undef HAVE_OPENGL_GL_H */
/* #undef NEED_SUNOS_H */
/* system calls/library functions */
#define AT_EXIT atexit
#define HAVE_TZSET 1
#define HAVE_OPENPTY 1
/* #undef HAVE_UNIX98_PTYS */
#define HAVE_SNPRINTF 1
/* #undef HAVE___SNPRINTF */
#define HAVE_MMAP 1
/* #undef HAVE_DYLD */
#define HAVE_LANGINFO_CODESET 1
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA_H 1
#define HAVE_UNSETENV 1
#define HAVE_NANOSLEEP 1
/* widths of primitive types */
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF_VOID_P 4
/* structures */
#define HAVE_TM_GMTOFF 1
#define HAVE_TIMEZONE 1
/* typedefs */
/* #undef size_t */
/* #undef socklen_t */
#define ENABLE_FAST_BLT 1
#define squeakInt64 long long
/* architecture */
#define OS_TYPE "unix"
#define VM_HOST "i686-pc-linux-gnu"
#define VM_HOST_CPU "i686"
/* #undef VM_HOST_VENDOR */
#define VM_HOST_OS "linux-gnu"
#define VM_BUILD_STRING "Unix built on "__DATE__ " "__TIME__" Compiler: "__VERSION__
/* #undef WORDS_BIGENDIAN */
/* #undef DOUBLE_WORD_ALIGNMENT */
/* damage containment */
/* #undef DARWIN */
#ifdef NEED_SUNOS_H
# include "sunos.h"
#endif
/* other configured variables */
#define SQ_VERSION "3.9a-7024"
#define VM_VERSION "3.9-7"
#define VM_MODULE_PREFIX ""
/* #undef VM_DLSYM_PREFIX */
#define VM_X11DIR ""
/* avoid dependencies on glibc2.3 */
#define HAVE_FEATURES_H 1
#if defined(HAVE_FEATURES_H)
# include "glibc.h"
#endif
/* used by UUID plugin: */
#define HAVE_UUID_H 1
#endif /* __sq_config_h */
'
]
{ #category : #'as yet unclassified' }
StackCrossRaspbianFastBltConfig >> configureBitBltSimulation: maker [
"extra rules for BitBltSimulation"
maker includeDirectories: '${pluginCross}'.
maker set: 'can_use_assembler' to: 'TRUE'.
maker cmd: 'enable_language' params: 'ASM'.
maker set: 'CMAKE_ASM_COMPILE_OBJECT' to: '"asasm -cpu 6 -I ${pluginCross} -o <OBJECT> <SOURCE>"'.
maker addCrossSources: #(
'BitBltArm.c'
'BitBltArmSimd.c'
'BitBltDispatch.c'
'BitBltGeneric.c'
'BitBltArmLinux.c'
'BitBltArmSimdAlphaBlend.s'
'BitBltArmSimdBitLogical.s'
'BitBltArmSimdPixPaint.s'
'BitBltArmSimdSourceWord.s'
).
]