Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6b032642
Commit
6b032642
authored
Jan 02, 2014
by
Damien George
Browse files
Merge pull request #28 from vext01/openbsd
Make micropython build on OpenBSD.
parents
5d32983c
33fefc74
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6b032642
...
...
@@ -28,9 +28,9 @@ Additional components:
The Unix version
----------------
The "unix" part requires a standard Unix environment with gcc
. It works
only for 64-bit machines due to a small piece of x86-64 assembler
for
the exception handling.
The "unix" part requires a standard Unix environment with gcc
and GNU make.
It works
only for 64-bit machines due to a small piece of x86-64 assembler
for
the exception handling.
To build:
...
...
py/asmx64.c
View file @
6b032642
...
...
@@ -7,6 +7,10 @@
#include "misc.h"
#include "asmx64.h"
#if defined(__OpenBSD__)
#define MAP_ANONYMOUS MAP_ANON
#endif
/* all offsets are measured in multiples of 8 bytes */
#define WORD_SIZE (8)
...
...
unix/Makefile
View file @
6b032642
...
...
@@ -3,7 +3,7 @@ BUILD=build
CC
=
gcc
CFLAGS
=
-I
.
-I
$(PYSRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-Os
-DUSE_READLINE
#-DNDEBUG
LDFLAGS
=
-lm
LDFLAGS
=
-lm
-ltermcap
SRC_C
=
\
main.c
\
...
...
unix/main.c
View file @
6b032642
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <
malloc
.h>
#include <
stdlib
.h>
#include "nlr.h"
#include "misc.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment