You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new C component, the code generator generates interfaces, type definitions, load routines and type-specific object management routines. A user is then still left with creating:
A makefile
A file that provides the hyvemain entry procedure
Though small tasks, they are a bit tedious and could easily be automated. For a novice user they also steepen the learning curve. It would be desirable if the generator tool could automate these tasks as well.
Proposed a generator that will generate a makefile, and a new source file called Foo__main.c that will contain the following function:
One thing that complicates makefile generation is to allow for future modifications. For example, a component may want to include additional include files or libraries.
An approach similar to allowing regeneration of source files could be employed here. A section could be introduced in the makefile where a user can insert his own code.
For example:
TARGET = lang
INCLUDE = include
# $beginINCLUDE += ../public/c/include
LIBS = rt dl m
# $endinclude$(BUILD)/component.makefile
Adds a new generator to the build that generates a makefile and
Hyve__main.c file that contains the entry point for a hyve library, and
loads the definitions into the object store.
TODO: allow makefiles to be user-edited and not overwritten when code
is re-generated.
The c_project generator has been modified so that it will not generate
a makefile when one is already present. This allows a user to make
persistent modifications to the content of a makefile.
When creating a new C component, the code generator generates interfaces, type definitions, load routines and type-specific object management routines. A user is then still left with creating:
Though small tasks, they are a bit tedious and could easily be automated. For a novice user they also steepen the learning curve. It would be desirable if the generator tool could automate these tasks as well.
Proposed a generator that will generate a makefile, and a new source file called
Foo__main.c
that will contain the following function:The text was updated successfully, but these errors were encountered: