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

Added alternatives to 'alloca' for allocation #15

Merged
merged 12 commits into from
Aug 17, 2024
Merged

Conversation

Sidelobe
Copy link
Collaborator

@Sidelobe Sidelobe commented Aug 7, 2024

Users can now choose between alloca, malloc and variable-length arrays (VLA).

  • Cmake option: TINYWAV_ALLOCATION={ALLOCA, VLA, MALLOC}

  • Preprocessor defines: TINYWAV_USE_ALLOCA, TINYWAV_USE_VLA, TINYWAV_USE_MALLOC

  • VLA is not supported by MSVC.

  • alloca/malloc are not available on some plartforms, e.g. embedded/DSP compilers

Github actions changes:

  • Ubuntu 20.04 with gcc7 -> 22.04 with gcc9
  • macos 11 -> macos 13

@Sidelobe Sidelobe merged commit 7c3b9bd into master Aug 17, 2024
26 checks passed
@Sidelobe Sidelobe deleted the feature/VLA-Option branch August 17, 2024 12:08
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

Successfully merging this pull request may close these issues.

1 participant