Skip to content

Commit ddcceef

Browse files
authored
Merge pull request #515 from ckormanyos/repair_metal_ci
2 parents e200ecf + 04b1411 commit ddcceef

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/wide_integer.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,10 @@ jobs:
587587
- name: update-tools
588588
run: |
589589
sudo apt update
590-
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
591-
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
592-
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncursesw5_6.3-2ubuntu0.1_amd64.deb
593-
sudo apt install ./libncursesw5_6.3-2ubuntu0.1_amd64.deb
590+
sudo apt install libncurses5-dev
594591
mkdir -p emu_env && cd emu_env
595-
wget --no-check-certificate https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
596-
tar -xf arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
592+
wget --no-check-certificate https://developer.arm.com/-/media/Files/downloads/gnu/14.3.rel1/binrel/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz
593+
tar -xf arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz
597594
wget --no-check-certificate https://github.com/xpack-dev-tools/qemu-arm-xpack/releases/download/v8.2.6-1/xpack-qemu-arm-8.2.6-1-linux-x64.tar.gz
598595
tar -xzf xpack-qemu-arm-8.2.6-1-linux-x64.tar.gz
599596
working-directory: ./
@@ -603,13 +600,13 @@ jobs:
603600
string: ${{ matrix.example }}
604601
- name: build-example-stm32f429
605602
run: |
606-
PATH="${{ runner.workspace }}/wide-integer/emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
603+
PATH="${{ runner.workspace }}/wide-integer/emu_env/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
607604
echo 'Query arm-none-eabi-g++ version'
608605
echo
609606
arm-none-eabi-g++ -v
610607
echo
611608
mkdir -p bin
612-
arm-none-eabi-g++ -std=${{ matrix.standard }} -Werror -Wall -Wextra -Wpedantic -Wpedantic -Wconversion -Wsign-conversion -O1 -g -gdwarf-2 -ffunction-sections -fdata-sections -x c++ -fno-rtti -fno-use-cxa-atexit -fno-exceptions -fno-nonansi-builtins -fno-threadsafe-statics -fno-enforce-eh-specs -ftemplate-depth=32 -mcpu=cortex-m4 -mtune=cortex-m4 -mthumb -mfloat-abi=soft -mno-unaligned-access -mno-long-calls -I. -DWIDE_INTEGER_DISABLE_IOSTREAM -DWIDE_INTEGER_DISABLE_TO_STRING -DWIDE_INTEGER_DISABLE_TRIVIAL_COPY_AND_STD_LAYOUT_CHECKS -DWIDE_INTEGER_NAMESPACE=ckormanyos -DWIDE_INTEGER_STANDALONE_${{ steps.upcase_my_example.outputs.uppercase }} examples/${{ matrix.example }}.cpp ./target/micros/stm32f429/make/single/crt.cpp -nostartfiles -Wl,--gc-sections -Wl,-Map,./bin/${{ matrix.example }}.map -T ./target/micros/stm32f429/make/stm32f429.ld --specs=nano.specs --specs=nosys.specs -o ./bin/${{ matrix.example }}.elf
609+
arm-none-eabi-g++ -std=${{ matrix.standard }} -Werror -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -O1 -g -gdwarf-2 -ffunction-sections -fdata-sections -x c++ -fno-rtti -fno-use-cxa-atexit -fno-exceptions -fno-nonansi-builtins -fno-threadsafe-statics -fno-enforce-eh-specs -ftemplate-depth=32 -mcpu=cortex-m4 -mtune=cortex-m4 -mthumb -mfloat-abi=soft -mno-unaligned-access -mno-long-calls -I. -DWIDE_INTEGER_DISABLE_IOSTREAM -DWIDE_INTEGER_DISABLE_TO_STRING -DWIDE_INTEGER_DISABLE_TRIVIAL_COPY_AND_STD_LAYOUT_CHECKS -DWIDE_INTEGER_NAMESPACE=ckormanyos -DWIDE_INTEGER_STANDALONE_${{ steps.upcase_my_example.outputs.uppercase }} examples/${{ matrix.example }}.cpp ./target/micros/stm32f429/make/single/crt.cpp -nostartfiles -Wl,--gc-sections -Wl,-Map,./bin/${{ matrix.example }}.map -T ./target/micros/stm32f429/make/stm32f429.ld --specs=nano.specs --specs=nosys.specs -o ./bin/${{ matrix.example }}.elf
613610
arm-none-eabi-objcopy ./bin/${{ matrix.example }}.elf -O ihex ./bin/${{ matrix.example }}.hex
614611
ls -la ./bin/${{ matrix.example }}.elf ./bin/${{ matrix.example }}.hex ./bin/${{ matrix.example }}.map
615612
working-directory: ./
@@ -622,7 +619,7 @@ jobs:
622619
- name: run-test-on-target
623620
run: |
624621
sleep 2
625-
PATH="${{ runner.workspace }}/wide-integer/emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
622+
PATH="${{ runner.workspace }}/wide-integer/emu_env/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
626623
echo 'Run test on target'
627624
echo
628625
arm-none-eabi-gdb ./bin/${{ matrix.example }}.elf -x ./target/build/test_examples_emulator.gdb > ./${{ matrix.example }}.txt

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ an alias. The first template parameter `512U` sets the binary width
136136
sets the internal _limb_ _type_. The limb type must be unsigned and one of
137137
`std::uint8_t`, `std::uint16_t`, `std::uint32_t` or on some systems
138138
`std::uint64_t`. If the second template parameter `LimbType` is left blank,
139-
the default limb type is thirty-two bits in width and unsigned.
139+
the default limb type (i.e., `uint_defaultlimb_t`) is either
140+
`std::uint32_t` or `std::uint64_t`, with $64$-bit limbs if
141+
`WIDE_INTEGER_HAS_LIMB_TYPE_UINT64` is defined (see also the relevant docs below).
140142

141143
The complete template signature of the `uintwide_t` class is shown below.
142144

0 commit comments

Comments
 (0)