Ignore:
Timestamp:
Jun 1, 2017, 3:36:59 PM (5 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
676cc8c
Parents:
ab904dc
Message:

Added a proof of consept resumption exception handler. Has comparable speed to the existing termination handler under O2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/working/exception/impl/main.c

    rab904dc r4a58895  
    3333//libcfa but there is one problem left, see the exception table
    3434//for details
     35__attribute__((noinline))
    3536void try( void (*try_block)(), void (*catch_block)() )
    3637{
     
    129130        raii_t a = { "Main dtor" };
    130131
    131         foo();
     132        for (unsigned int i = 0 ; i < 100000000 ; ++i) foo();
    132133
    133134        printf("End of program reached\n");
Note: See TracChangeset for help on using the changeset viewer.