mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
bdcf2a0af0
commit
cef05d3110
4 changed files with 19 additions and 1 deletions
|
@ -13,6 +13,7 @@ CP = $(RISCV_TOOLCHAIN_PATH)/bin/$(RISCV_PREFIX)-objcopy
|
|||
|
||||
CFLAGS += -O3 -mcmodel=medany -fno-exceptions -nostartfiles -nostdlib -fdata-sections -ffunction-sections
|
||||
CFLAGS += -I$(VORTEX_KN_PATH)/include -I$(ROOT_DIR)/hw
|
||||
CFLAGS += -DXLEN_$(XLEN) -DNDEBUG
|
||||
|
||||
LIBC_LIB += -L$(LIBC_VORTEX)/lib -lm -lc -lgcc
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ K_CFLAGS += -fno-rtti -fno-exceptions -nostartfiles -nostdlib -fdata-sections -
|
|||
#K_CFLAGS += -mllvm -vortex-branch-divergence=0
|
||||
#K_CFLAGS += -mllvm -print-after-all
|
||||
K_CFLAGS += -mllvm -disable-loop-idiom-all # disable memset/memcpy loop idiom
|
||||
K_CFLAGS += -I$(VORTEX_KN_PATH)/include -DNDEBUG
|
||||
K_CFLAGS += -I$(VORTEX_KN_PATH)/include -DXLEN_$(XLEN) -DNDEBUG
|
||||
K_LDFLAGS += -Wl,-Bstatic,--gc-sections,-T$(VORTEX_KN_PATH)/linker/vx_link$(XLEN).ld,--defsym=STARTUP_ADDR=$(STARTUP_ADDR) $(ROOT_DIR)/kernel/libvortexrt.a $(LIBC_LIB)
|
||||
|
||||
CXXFLAGS += -std=c++11 -Wall -Wextra -Wfatal-errors
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
// Copyright © 2019-2023
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include <VX_config.h>
|
||||
#include <VX_types.h>
|
||||
|
||||
.section .init, "ax"
|
||||
.global _start
|
||||
.type _start, @function
|
||||
|
|
|
@ -35,6 +35,7 @@ VX_CP = $(LLVM_VORTEX)/bin/llvm-objcopy
|
|||
|
||||
VX_CFLAGS += -v -O3 -std=c++11 -mcmodel=medany -fno-rtti -fno-exceptions -nostartfiles -nostdlib -fdata-sections -ffunction-sections
|
||||
VX_CFLAGS += -I$(VORTEX_KN_PATH)/include -I$(ROOT_DIR)/hw
|
||||
VX_CFLAGS += -DXLEN_$(XLEN)
|
||||
VX_CFLAGS += -DNDEBUG
|
||||
|
||||
VX_LIBS += -L$(LIBC_VORTEX)/lib -lm -lc -lgcc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue