bit swap in byte


Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1102
Posted: 05:25pm 27 Jul 2022      

  ville56 said  ... C is efficient, if you like it or not. And yes, i don't like it ... ;-) ...

Hi Gerald,
I just set up the compiler for the PicoMite CSubs today.

On the power of C: I think nowadays you can do most things in MM-Basic and that's fantastic. But sometimes things have to be very fast - this is the time of the CSUBs.
Kind regards
Michael

BTW: This is my Make.bat file. Maybe it helps ...?
@ECHO OFF
bin\arm-none-eabi-gcc -c -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -Wall -Wno-main -ffunction-sections -O0 -fPIC -I. %1.c -o %1.o

IF ERRORLEVEL 1 Goto Done
pause

bin\arm-none-eabi-ld -nostartfiles -T arm-gcc-link.ld -o %1.elf %1.o

IF ERRORLEVEL 1 Goto Done
pause
MMBasic ArmCfGenV144.bas %1.elf %2
del %1.elf
del %1.o

:Done

Edited 2022-07-28 03:25 by twofingers