Skip to content

TwoClocks/aro-translate-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aro-translate-c

Use AroCC to translate C to Zig

Just scaffolding at the moment. Currently only simple var decls, #Define and typedefs work

int var1=7;
#define __UQUAD_TYPE		unsigned long int

#define __SYSCALL_ULONG_TYPE	__UQUAD_TYPE
#define __CPU_MASK_TYPE 	__SYSCALL_ULONG_TYPE
/* Type for array elements in 'cpu_set_t'.  */
typedef __CPU_MASK_TYPE __cpu_mask;

to

pub var var1: c_int = 7;
pub const __cpu_mask = c_ulong;

the build.zig assumes arocc is in the relative directly of ../arocc.

Both arocc and zig should be from head of master.

About

Use AroCC to translate C to Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published