SkillAgentSearch skills...

Keil2sdcc

convert c51 program to sdcc

Install / Use

/learn @ywaby/Keil2sdcc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Project under MIT license.

Feature

  • Convert keil c51 to sdcc

install

git clone git@github.com:ywaby/keil2sdcc.git
python3 setup.py install

need python 3.7+

usage

import usage

import keil2sdcc
keil2sdcc.c51_2_sdcc(keil_file)

direct usage without install

python3 -m keil2sdcc ./test/reg51.h ./test/test.c

cmdline usage

usage: keil2sdcc [-h] [-v] [-e ENCODE] [-r] [-j n] [files [files ...]]

convert keil c51 to sdcc

positional arguments:
  files                 keil srcs to convert;supprot glob

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         print version
  -e ENCODE, --encode ENCODE
                        assign keil src encode
  -r, --replace         replace keil src with sdcc src
  -j n, --jobs n        number of parallel jobs; match CPU count if value is 0

example

keil2sdcc keil_c51.c # generate keil_c51.sdcc.c at src path
keil2sdcc keil_c51.c --replace # replace keil src
python3 -m keil2sdcc ./test/reg51.h ./test/test.c # header file is need before c

more usage see tasks.py test task

reference

View on GitHub
GitHub Stars53
CategoryDevelopment
Updated1mo ago
Forks13

Languages

Python

Security Score

100/100

Audited on Mar 5, 2026

No findings