libsnark icon indicating copy to clipboard operation
libsnark copied to clipboard

full example including compilation to TinyRAM?

Open louisabraham opened this issue 3 years ago • 3 comments

Hi, I cannot find the TinyRAM compiler. I think it would be great to show how the .s in https://github.com/scipr-lab/libsnark/tree/master/tinyram_examples can be generated.

louisabraham avatar Dec 12 '21 19:12 louisabraham

+1 Was TinyRAM compiler made public?

marcinbugaj avatar Dec 22 '21 15:12 marcinbugaj

If someone knows how to even access tinyRAM compiler or suggest some alternative , that will also be great. Please let me know what you think of it?

mkumar-cognam avatar Jul 12 '23 12:07 mkumar-cognam

@mkumar-cognam , I wrote a backend for tinyRAM for llvm: https://github.com/Orbis-Tertius/llvm-project/tree/tinyRAM_backend-1 It should be fully functional.

Here are related repositories:

  • https://github.com/Orbis-Tertius/tinyram - tinyRAM machine emulator written in Haskell
  • https://github.com/Orbis-Tertius/tinyram_llvm_backend_testing - testcases for the tinyRAM backend (small C programs)

marcinbugaj avatar Aug 16 '23 19:08 marcinbugaj