diff options
author | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2020-10-30 18:32:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 18:32:04 +0100 |
commit | b1b853a2e9f7f2143fedd58772a702bc9c6a8ba1 (patch) | |
tree | 6291dad029ddd029db371a4d6bc4101d15db6cb9 /cfrontend/Initializersproof.v | |
parent | 6aeb6455cc52172fbb78999b17503d9a66ce7bfb (diff) | |
download | compcert-b1b853a2e9f7f2143fedd58772a702bc9c6a8ba1.tar.gz compcert-b1b853a2e9f7f2143fedd58772a702bc9c6a8ba1.zip |
Add -main option to specify entrypoint function in interpreter mode (#374)
When running unit tests with the CompCert reference interpreter, it's nice to be able to start execution at a given test function instead of having to write a main function.
This PR adds a -main command-line option to give the name of the entry point function. The default is still main. Frama-C has a similar option.
The function specified with -main is called with no arguments. If its return type is int, its return value is the exit status of the program. Otherwise, its return value is ignored and the program exits with status 0.
Diffstat (limited to 'cfrontend/Initializersproof.v')
0 files changed, 0 insertions, 0 deletions