All Projects → leungwensen → cbc-ubuntu-64bit

leungwensen / cbc-ubuntu-64bit

Licence: other
Cb (C flat) compiler. Cb is simplified C.

Projects that are alternatives of or similar to cbc-ubuntu-64bit

openssl
A functions wrapping of OpenSSL library for symmetric and asymmetric encryption and decryption.
Stars: ✭ 199 (+25.95%)
Mutual labels:  cbc
bcmrpi3-kernel-bis
Automated weekly build of the default branch 64-bit bcmrpi3_defconfig (+ tweaks) Linux kernel for the RPi3 B / B+
Stars: ✭ 22 (-86.08%)
Mutual labels:  64-bit
PSMemory
Automation Capable Multi Search 64 Bit Windows Memory Scanner
Stars: ✭ 25 (-84.18%)
Mutual labels:  64-bit
ArvernOS
💾 A minimal, experimental and "toy" monolithic kernel to learn about OS development // Work In Progress
Stars: ✭ 313 (+98.1%)
Mutual labels:  64-bit
crypto
🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Stars: ✭ 40 (-74.68%)
Mutual labels:  cbc
flipy
A Python linear programming interface library
Stars: ✭ 23 (-85.44%)
Mutual labels:  cbc
OpenAdBlock
The free, open-source Content Blocker for 32- and 64-bit iOS devices
Stars: ✭ 82 (-48.1%)
Mutual labels:  64-bit
django-mirage-field
Django model field encrypt/decrypt your data, keep secret in database.
Stars: ✭ 86 (-45.57%)
Mutual labels:  cbc
natick
natickOS - A minimal, lightweight, research Linux Distribution
Stars: ✭ 33 (-79.11%)
Mutual labels:  64-bit
alg-releases
Release Engineering for ALG
Stars: ✭ 98 (-37.97%)
Mutual labels:  64-bit
Complete-Blood-Cell-Count-Dataset
The complete blood count (CBC) dataset contains a total of 360 blood smear images of red blood cells (RBCs), white blood cells (WBCs), and Platelets with annotations.
Stars: ✭ 31 (-80.38%)
Mutual labels:  cbc
AES
AES for microcontrollers (Arduino & Raspberry pi)
Stars: ✭ 116 (-26.58%)
Mutual labels:  cbc
Python-File-Encryptor
Encrypt and Decrypt files using Python (AES CBC MODE)
Stars: ✭ 51 (-67.72%)
Mutual labels:  cbc
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (-79.11%)
Mutual labels:  cbc
good lp
Linear Programming for Rust, with an user-friendly API. This crate allows modeling LP problems, and let's you solve them with various solvers.
Stars: ✭ 77 (-51.27%)
Mutual labels:  cbc
rcbc
COIN-OR branch and cut (CBC) bindings for R
Stars: ✭ 16 (-89.87%)
Mutual labels:  cbc
file-vault
A Laravel package for encrypting and decrypting files of any size
Stars: ✭ 152 (-3.8%)
Mutual labels:  cbc
MiddleClick-BigSur
 "Wheel click" with three-finger click/tap for Trackpad and Magic Mouse.
Stars: ✭ 431 (+172.78%)
Mutual labels:  64-bit
polyclip
R package polyclip: a port of the Clipper library for polygon geometry
Stars: ✭ 18 (-88.61%)
Mutual labels:  64-bit
chess22k
Chessengine written in Java
Stars: ✭ 26 (-83.54%)
Mutual labels:  64-bit

CbC - Cflat Compiler (the ubuntu 64bit version)

《自制编译器》一书中实现的cbc编译器的ubuntu64位版本。这个项目主要解决64位机器上无法正常编译和运行cbc的问题。

直接安装使用(在ubuntu 64位系统上)

安装依赖

注意:不同ubuntu发行版可能依赖库名称不一致。此处代码为ubuntu 16.04版本上的安装命令

apt-get update && apt-get install -y \
        gcc-multilib g++-multilib libc6-i386 lib32ncurses5 lib32stdc++6 \
        openjdk-8-jre \
        git

下载&安装cbc

git clone https://github.com/leungwensen/cbc-ubuntu-64bit.git
cd cbc-ubuntu-64bit && ./install.sh

使用

和原始的cbc不同,在64位系统里需要增加-Wa,"--32" -Wl,"-melf_i386"执行参数。

cbc -Wa,"--32" -Wl,"-melf_i386" test/hello.cb
./hello
> Hello, World!

使用docker镜像(在任意64位宿主环境上)

大致的原理就是基于ubuntu 16.04的64位系统构建了一个可供cbc编译、执行的环境。用户只需把打包好的镜像下载到本地就可以得到可执行的cbc,免去配置和编译cbc的麻烦。

安装docker:详见Docker 中文指南

启动docker daemon进程

eval $(docker-machine env default)

下载镜像leungwensen/cbc-ubuntu-64bit

docker pull leungwensen/cbc-ubuntu-64bit

执行镜像

docker run -t -i leungwensen/cbc-ubuntu-64bit

执行cbc

镜像里的cbc命令为cbc -Wa,--32 -Wl,-melf_i386的别名,可以直接执行。

cbc cbc-ubuntu-64bit/test/hello.cb

共建/bug报告

有任何使用上的问题,可以搜索已有issue或者新建一个issue

更希望大家可以一起完善这个项目,给我提pull request

参考

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].