-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
[FEATURE] Dynamic memory allocation #33
Comments
@frankhart2018 Hi I want to work upon this issue. |
@Gaurav7888 please mention the syntax here, once that is approved I or any other maintainer can assign you to this. |
Like (pointer type ) malloc(sizeof() ) |
DMA includes allocating, reallocating, and deleting. |
free() could be used for deletion |
@Gaurav7888 What syntax do you propose for the same in SimC ? |
@PranshulDobriyal cpython have some functions to do abv things . |
@Gaurav7888 Yes that will explain the backend of the desired functions, but what front-end (syntax in simC) do you propose. |
@Gaurav7888 They are asking for something like: Example of Sim-C allocating memory: SimC code:
Generated C code:
It's like SimC will interpreter the command. |
@frankhart2018 Sim-C should predict the type of the variable? If so, it's change a lot of expected code. A example. SimC code:
|
What do we need dynamic memory allocation for other than variable length arrays? |
Can you start a discussion for this @victorjzsun. |
Created a discussion here |
Is your feature request related to a problem? Please describe.
Dynamic memory allocation in simC.
Describe the solution you'd like
Open ended, come up with an intuitive syntax.
Note: Discuss syntax with a maintainer before implementing.
The text was updated successfully, but these errors were encountered: