Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9736)

Issue 571430048: Disable C++ exceptions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 3 months ago by hahnjo
Modified:
4 years, 2 months ago
Reviewers:
Dan Eble, hanwenn, lemzwerg, haberg-1
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Disable C++ exceptions 1) Drop exception handling around scm_boot_guile Doing this at the end of main() is pointless. 2) Disable exception handling code We don't throw in LilyPond and it's only bloating the executable: before: 192,586,512B after: 166,845,952B (-13.3%) This might also have a positive effect on the build time as well as performance during runtime, but I didn't try to measure that for now.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -16 lines) Patch
M lily/main.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M stepmake/stepmake/c++-vars.make View 1 chunk +1 line, -1 line 0 comments Download
M stepmake/stepmake/test-rules.make View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5
lemzwerg
LGTM
4 years, 3 months ago (2020-01-27 20:30:36 UTC) #1
Dan Eble
> 1) Drop exception handling around scm_boot_guile > Doing this at the end of main() ...
4 years, 3 months ago (2020-01-27 21:05:27 UTC) #2
hahnjo
On 2020/01/27 21:05:27, Dan Eble wrote: > > 1) Drop exception handling around scm_boot_guile > ...
4 years, 3 months ago (2020-01-28 17:36:16 UTC) #3
hanwenn
LGTM I don't think there is any chance of ever using exceptions in LilyPond, because ...
4 years, 3 months ago (2020-01-28 22:28:02 UTC) #4
haberg-1_telia.com
4 years, 3 months ago (2020-01-29 00:20:07 UTC) #5
> On 28 Jan 2020, at 23:28, hanwenn@gmail.com wrote:
> 
> I don't think there is any chance of ever using exceptions in LilyPond,
> because we can't mix them with the GUILE call stack.

One can combine C++ and Guile exceptions, by converting back and forth between
them. Even though GCC admits throwing C++ exceptions through a C stack by some
option, somebody mentioned there are complications with that, and better
avoided.


Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b