Notes |
|
(0002624)
|
hugues
|
2016-03-21 11:14
|
|
Agreed this is an issue. But what is the proposed resolution ?
The name of the binary is the name of the AADL process. So you may
a) change the VT to generate a different name and avoid the conflict
b) change Ocarina to do a similar name change
c) change Ocarina to call the main function main, in package main.adb and then rename the binary from main to the name of the process (we do that for PolyORB-HI/C already)
c) is probably better |
|
|
(0002627)
|
maxime
|
2016-03-22 14:06
|
|
Agreed with your proposed solution. |
|
|
(0003039)
|
maxime
|
2017-10-04 13:43
|
|
However, if there is a function called "main" in the Interface view, the problem remains. |
|
|
(0003115)
|
hugues
|
2017-11-14 17:25
|
|
Could this be handled as a check done by the TASTE-xV editor ? We already have some naming checks in place. |
|
|
(0003116)
|
maxime
|
2017-11-14 19:30
|
|
Agreed. So two actions:
(1) Ellidiss to add "main" to the list of forbidden words
(2) Jerome to generate the main function in main.adb.
I will add a separate ticket to handle (1). This ticket remains open only for point (2). |
|
|
(0003117)
|
hugues
|
2017-11-15 06:10
|
|
This is not a viable solution, if we have two Ada nodes, they will be called main, and thus break existing setup, e.g. when we copy all binaries to the same directory
It makes more sense to forbid function and partition to have the same name |
|
|
(0003119)
|
maxime
|
2017-11-15 08:37
|
|
For (2), as part of the solution, you proposed "and then rename the binary from main to the name of the process (we do that for PolyORB-HI/C already)" (see above).
Wouldn't that do it? |
|
|
(0003825)
|
maxime
|
2023-05-14 16:54
|
|
Opened for too long, and reasonably acceptable situation. |
|