Skip to content
WeichwolfPublic

About

SHARC ADSP-214xx ISA/VISA processor core for emulators: generic, firmware-independent translation to native code with LLVM 19 (ORC JIT, cacheable ahead-of-time images). Bit-exact Strict and optional FastFP32. C++23. In development.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

sharc

Independent SHARC native translation project, initially targeting ADSP-214xx SIMD cores with ISA and VISA decoding.

Target implementation: C++23, LLVM 19, Linux x86-64 and macOS ARM64, GPL-3.0-only. The library follows the Core/Memory/Io ownership model of the adjacent cpu12 and dsp56300 projects. See OBJECTIVE.md for acceptance and doc/architecture.md for the target design.

Current state

Installed LLVM images execute a classic ISA subset that includes fixed-point compute, single-function floating arithmetic and comparison, memory transfers, delayed control flow, hardware loops and interrupt continuations. The API supports artifact caching, snapshots and declared code transitions. See the coverage inventory for legal forms and remaining gaps, state storage, memory access and the independent numeric reference. The benchmark report lists the checked Linux K1–K6 results.

cmake --preset release
nice -n 10 cmake --build --preset release
nice -n 10 ctest --preset release
find include src test -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.hpp' \) \
  -exec nice -n 10 clang-format-19 --dry-run --Werror {} +
find src test -type f \( -name '*.c' -o -name '*.cpp' \) \
  -exec nice -n 10 clang-tidy-19 -p build/release {} +

Requirements: C++23, LLVM 19.1, CMake 3.25 and Ninja; Python 3 for tests. The tests work offline without local reference manuals. An installed CMake consumer is checked by CTest. Linux x86-64 is tested; macOS ARM64 is untested.

Numerical modes

Strict is the default and uses the guest's 32-/40-bit rules for supported floating operations. FastFP32 is an opt-in mode that rounds computational operands and results to binary32, preserving raw storage, integer semantics and instruction order. Both modes use separate prepared image identities. See the numerical contracts.

Reference material

Read doc/references.md. Manufacturer PDFs and extracted text are kept locally under ignored doc/local/; their origins, revisions, byte lengths and SHA-256 identities are recorded in doc/reference-manifest.json.

python3 tools/references.py verify
python3 tools/references.py fetch
python3 tools/references.py text

Verification is offline. Fetch downloads missing pinned copies; text requires pdftotext. These commands inspect reference material and do not execute firmware or test an instruction set. Manuals are not production-build inputs.

Implementation order

  1. Establish the complete profile/encoding inventory and independent fixtures.
  2. Add the minimal architectural state/memory API and real strict build targets.
  3. Implement native lowering on both hosts with independent ISA/core/JIT checks.
  4. Complete faults, interrupts, numerical modes and code/mapping coherence.
  5. Measure checked continuous workloads and integrate through consumer-owned I/O.

Device firmware, peripheral models, audio scheduling and application code remain in consumers. The separate Nord firmware reconstruction remains paused.

License | Provenance

About

SHARC ADSP-214xx ISA/VISA processor core for emulators: generic, firmware-independent translation to native code with LLVM 19 (ORC JIT, cacheable ahead-of-time images). Bit-exact Strict and optional FastFP32. C++23. In development.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages