ego icon indicating copy to clipboard operation
ego copied to clipboard

How does Ego support clone()?

Open ncppd opened this issue 2 years ago • 1 comments

Hello and thanks for you effort in this project! I am trying to understand how do you support the clone() system call that native go application perform during startup.

Also do you use the edge8r library? Is it feasible/easy to include more system calls in your design?

ncppd avatar Jun 29 '22 08:06 ncppd

Hi, The ego-go compiler enforces cgo. When cgo is enabled, Go will use pthread_create instead of clone.

Yes, EGo uses edger8r (from Open Enclave) internally. This is part of the underlying Edgeless RT. EGo's design doesn't provide for the user to add syscalls or ocalls, but one can add them to Edgeless RT. We do this every now and then. We'd also accept contributions if they are generic and helpful for EGo in general.

thomasten avatar Jun 29 '22 11:06 thomasten