Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Soil Feature Guards #3

Open
ctiedt opened this issue Nov 16, 2024 · 0 comments
Open

Proposal: Soil Feature Guards #3

ctiedt opened this issue Nov 16, 2024 · 0 comments

Comments

@ctiedt
Copy link
Collaborator

ctiedt commented Nov 16, 2024

There are some differences in features between current Soil implementations. Some of this is because of differing states of maintenance, but certain features may not make sense for some use cases.

For example, the kernel module omits floating point support, since floating point arithmetic is not generally usable in the Linux kernel. Also, some syscalls, e.g. those related to graphics, may not be always be available.

Proposal

Introduce a new section kind features. I see two possible implementations here:

  • Make the section word-sized and define each bit to toggle a feature from a fixed list, to be defined in the specification.
  • Make the section a list of key-value pairs of feature names to values.

While the first solution is more efficient in terms of binary size, the second allows for greater flexibility in feature definition and could also allow for non-boolean features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant