Changes in / [fd2b607:b5bb444]
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
rfd2b607 rb5bb444 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Mar 10 11:41:18202014 ## Update Count : 25 813 ## Last Modified On : Sat Jan 25 09:20:44 2020 14 ## Update Count : 255 15 15 ############################################################################### 16 16 … … 108 108 creation_cfa_coroutine_DURATION = 100000000 109 109 creation_cfa_coroutine_eager_DURATION = 10000000 110 creation_cfa_generator_DURATION = 1000000000111 110 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 112 111 creation_cfa_thread_DURATION = 10000000 -
benchmark/Makefile.in
rfd2b607 rb5bb444 447 447 creation_cfa_coroutine_DURATION = 100000000 448 448 creation_cfa_coroutine_eager_DURATION = 10000000 449 creation_cfa_generator_DURATION = 1000000000450 449 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 451 450 creation_cfa_thread_DURATION = 10000000 -
benchmark/creation/cfa_gen.cfa
rfd2b607 rb5bb444 1 #include " ../bench.h"1 #include "bench.h" 2 2 3 generator G{3 struct C { 4 4 volatile int restart; // ensure compiler does not optimize away all the code 5 5 }; 6 void ?{}( G & g ) { g.restart = 0; }7 void main( G& ) {}6 void ?{}( C & c ) { c.restart = 0; } 7 void main( C & ) {} 8 8 9 9 int main( int argc, char * argv[] ) { … … 11 11 BENCH( 12 12 for ( times ) { 13 G g;13 C c; 14 14 }, 15 15 result -
benchmark/ctxswitch/cfa_cor.cfa
rfd2b607 rb5bb444 2 2 #include <thread.hfa> 3 3 4 #include " ../bench.h"4 #include "bench.h" 5 5 6 coroutine C {} ;6 coroutine C {} c; 7 7 void main( __attribute__((unused)) C & ) { 8 for() {8 while () { 9 9 suspend; 10 10 } 11 11 } 12 12 int main( int argc, char * argv[] ) { 13 C c;14 13 BENCH_START() 15 14 BENCH( -
benchmark/ctxswitch/cfa_gen.cfa
rfd2b607 rb5bb444 1 1 #include "../bench.h" 2 2 3 generator G {}; 4 void main( G & ) { 3 typedef struct { 4 void * next; 5 } C; 6 7 void comain( C * c ) { 8 if ( __builtin_expect(c->next != 0, 1) ) goto *(c->next); 9 c->next = &&s1; 5 10 for () { 6 suspend; 11 return; 12 s1: ; 7 13 } 8 14 } 9 15 10 16 int main( int argc, char * argv[] ) { 11 G g;12 17 BENCH_START() 18 C c = { 0 }; 13 19 BENCH( 14 20 for ( times ) { 15 resume( g);21 comain( &c ); 16 22 }, 17 23 result -
src/Parser/parser.yy
rfd2b607 rb5bb444 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 6 17:26:45202013 // Update Count : 447 412 // Last Modified On : Wed Feb 26 14:27:39 2020 13 // Update Count : 4472 14 14 // 15 15 … … 919 919 conditional_expression 920 920 | unary_expression assignment_operator assignment_expression 921 { 922 if ( $2 == OperKinds::AtAssn ) { 923 SemanticError( yylloc, "C @= assignment is currently unimplemented." ); $$ = nullptr; 924 } else { 925 $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) ); 926 } // if 927 } 921 { $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) ); } 928 922 | unary_expression '=' '{' initializer_list_opt comma_opt '}' 929 923 { SemanticError( yylloc, "Initializer assignment is currently unimplemented." ); $$ = nullptr; }
Note: See TracChangeset
for help on using the changeset viewer.