Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
fb14a8e0
Commit
fb14a8e0
authored
Jul 14, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pyston_release_gcc
parent
4db48f10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
Makefile
Makefile
+15
-4
src/asm_writing/assembler.cpp
src/asm_writing/assembler.cpp
+0
-1
src/asm_writing/types.h
src/asm_writing/types.h
+3
-1
No files found.
Makefile
View file @
fb14a8e0
...
...
@@ -61,8 +61,9 @@ FORCE_TRUNK_BINARIES := 0
NINJA
:=
ninja
CMAKE_DIR_DBG
:=
$(BUILD_DIR)
/Debug
CMAKE_DIR_DBG_GCC
:=
$(BUILD_DIR)
/Debug-gcc
CMAKE_DIR_RELEASE
:=
$(BUILD_DIR)
/Release
CMAKE_DIR_GCC
:=
$(BUILD_DIR)
/Debug-gcc
CMAKE_DIR_RELEASE_GCC
:=
$(BUILD_DIR)
/Release-gcc
CMAKE_SETUP_DBG
:=
$(CMAKE_DIR_DBG)
/build.ninja
CMAKE_SETUP_RELEASE
:=
$(CMAKE_DIR_RELEASE)
/build.ninja
...
...
@@ -896,7 +897,6 @@ pyston_release: $(CMAKE_SETUP_RELEASE)
$(NINJA)
-C
$(CMAKE_DIR_RELEASE)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
ln
-sf
$(CMAKE_DIR_RELEASE)
/pyston pyston_release
CMAKE_DIR_GCC
:=
$(CMAKE_DIR_DBG_GCC)
CMAKE_SETUP_GCC
:=
$(CMAKE_DIR_GCC)
/build.ninja
$(CMAKE_SETUP_GCC)
:
@
$(MAKE)
cmake_check
...
...
@@ -904,8 +904,18 @@ $(CMAKE_SETUP_GCC):
cd
$(CMAKE_DIR_GCC)
;
CC
=
'
$(GCC)
'
CXX
=
'
$(GPP)
'
cmake
-GNinja
$(SRC_DIR)
-DCMAKE_BUILD_TYPE
=
Debug
$(CMAKE_VALGRIND)
.PHONY
:
pyston_gcc
pyston_gcc
:
$(CMAKE_SETUP_GCC)
$(NINJA)
-C
$(CMAKE_DIR_DBG_GCC)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
ln
-sf
$(CMAKE_DIR_DBG_GCC)
/pyston pyston_gcc
$(NINJA)
-C
$(CMAKE_DIR_GCC)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
ln
-sf
$(CMAKE_DIR_GCC)
/pyston pyston_gcc
CMAKE_SETUP_RELEASE_GCC
:=
$(CMAKE_DIR_RELEASE_GCC)
/build.ninja
$(CMAKE_SETUP_RELEASE_GCC)
:
@
$(MAKE)
cmake_check
@
mkdir
-p
$(CMAKE_DIR_RELEASE_GCC)
cd
$(CMAKE_DIR_RELEASE_GCC)
;
CC
=
'
$(GCC)
'
CXX
=
'
$(GPP)
'
cmake
-GNinja
$(SRC_DIR)
-DCMAKE_BUILD_TYPE
=
Release
$(CMAKE_VALGRIND)
.PHONY
:
pyston_release_gcc
pyston_release_gcc
:
$(CMAKE_SETUP_RELEASE_GCC)
$(NINJA)
-C
$(CMAKE_DIR_RELEASE_GCC)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
ln
-sf
$(CMAKE_DIR_RELEASE_GCC)
/pyston pyston_release_gcc
.PHONY
:
format check_format
format
:
$(CMAKE_SETUP_RELEASE)
...
...
@@ -1019,6 +1029,7 @@ $(call make_target,_release)
# $(call make_target,_nosync)
$(call
make_target,_prof)
$(call
make_target,_gcc)
$(call
make_target,_release_gcc)
nosearch_runpy_% nosearch_pyrun_%
:
%.py ext_python
$(VERB)
PYTHONPATH
=
test
/test_extension/build/lib.linux-x86_64-2.7 zsh
-c
'time python $<'
...
...
src/asm_writing/assembler.cpp
View file @
fb14a8e0
...
...
@@ -887,7 +887,6 @@ void Assembler::jmp(JumpDestination dest) {
emitByte
(
0xeb
);
emitByte
(
offset
);
}
else
{
assert
((
-
1L
<<
31
)
<=
dest
.
offset
&&
dest
.
offset
<
(
1L
<<
31
)
-
1
);
offset
-=
3
;
emitByte
(
0xe9
);
emitInt
(
offset
,
4
);
...
...
src/asm_writing/types.h
View file @
fb14a8e0
...
...
@@ -172,7 +172,9 @@ struct JumpDestination {
int
offset
;
constexpr
JumpDestination
(
OffsetType
type
,
int
offset
)
:
type
(
type
),
offset
(
offset
)
{}
JumpDestination
(
OffsetType
type
,
int64_t
offset
)
:
type
(
type
),
offset
(
offset
)
{
assert
((
-
1L
<<
31
)
<=
offset
&&
offset
<
(
1L
<<
31
)
-
1
);
}
static
JumpDestination
fromStart
(
int
offset
)
{
return
JumpDestination
(
FROM_START
,
offset
);
}
};
}
...
...
Write
Preview
Markdown
is supported
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