- Timestamp:
- Mar 3, 2018, 7:54:50 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 0a2168f
- Parents:
- 000ff2c
- Location:
- doc/papers/general
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/Paper.tex
r000ff2c r82c367d 13 13 \usepackage{pslatex} % reduce size of san serif font 14 14 \usepackage[plainpages=false,pdfpagelabels,pdfpagemode=UseNone,pagebackref=true,breaklinks=true,colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} 15 \urlstyle{sf} 16 \usepackage{breakurl} 15 17 16 18 \setlength{\textheight}{9in} … … 2020 2022 \begin{tabular}{@{}l@{\hspace{\parindentlnth}}l@{\hspace{\parindentlnth}}l@{}} 2021 2023 \begin{cfa} 2022 20 _hh// signed char2023 21 _hhu// unsigned char2024 22 _h// signed short int2025 23 _uh// unsigned short int2026 24 z// size_t2027 \end{cfa} 2028 & 2029 \begin{cfa} 2030 20 _L8// int8_t2031 21 _ul8// uint8_t2032 22 _l16// int16_t2033 23 _ul16// uint16_t2034 24 _l32// int32_t2035 \end{cfa} 2036 & 2037 \begin{cfa} 2038 25 _ul32// uint32_t2039 26 _l64// int64_t2040 27 _l64u// uint64_t2041 26 _L128// int1282042 27 _L128u// unsigned int1282024 20`_hh` // signed char 2025 21`_hhu` // unsigned char 2026 22`_h` // signed short int 2027 23`_uh` // unsigned short int 2028 24`z` // size_t 2029 \end{cfa} 2030 & 2031 \begin{cfa} 2032 20`_L8` // int8_t 2033 21`_ul8` // uint8_t 2034 22`_l16` // int16_t 2035 23`_ul16` // uint16_t 2036 24`_l32` // int32_t 2037 \end{cfa} 2038 & 2039 \begin{cfa} 2040 25`_ul32` // uint32_t 2041 26`_l64` // int64_t 2042 27`_l64u` // uint64_t 2043 26`_L128` // int128 2044 27`_L128u` // unsigned int128 2043 2045 \end{cfa} 2044 2046 \end{tabular} … … 2465 2467 ofstream out = { "cfa-out.txt" }; 2466 2468 int max = 0, val = 42; 2467 stack( int ) s i, t;2468 2469 REPEAT_TIMED( "push_int", N, push( s i, val ); )2470 TIMED( "copy_int", t = s i; )2471 TIMED( "clear_int", clear( s i); )2469 stack( int ) s, t; 2470 2471 REPEAT_TIMED( "push_int", N, push( s, val ); ) 2472 TIMED( "copy_int", t = s; ) 2473 TIMED( "clear_int", clear( s ); ) 2472 2474 REPEAT_TIMED( "pop_int", N, int x = pop( t ); max = max( x, max ); ) 2473 2475 REPEAT_TIMED( "print_int", N/2, out | val | ':' | val | endl; ) 2474 2476 2475 pair( _Bool, char ) max = { (_Bool)0, '\0' }, val = { (_Bool)1, 'a' };2477 pair( _Bool, char ) max = { false, '\0' }, val = { true, 'a' }; 2476 2478 stack( pair( _Bool, char ) ) s, t; 2477 2479 … … 2634 2636 2635 2637 The authors would like to recognize the design assistance of Glen Ditchfield, Richard Bilson, and Thierry Delisle on the features described in this paper, and thank Magnus Madsen for feedback in the writing. 2636 %This work is supported in part by a corporate partnership with \grantsponsor{Huawei}{Huawei Ltd.}{http://www.huawei.com}, and Aaron Moss and Peter Buhr are funded by the \grantsponsor{Natural Sciences and Engineering Research Council} of Canada. 2638 This work is supported through a corporate partnership with Huawei Ltd.\ (\url{http://www.huawei.com}), and Aaron Moss and Peter Buhr are funded by the Natural Sciences and Engineering Research Council of Canada. 2639 2637 2640 % the first author's \grantsponsor{NSERC-PGS}{NSERC PGS D}{http://www.nserc-crsng.gc.ca/Students-Etudiants/PG-CS/BellandPostgrad-BelletSuperieures_eng.asp} scholarship. 2638 2641 -
doc/papers/general/evaluation/cfa-bench.c
r000ff2c r82c367d 1 1 #include <fstream> 2 2 #include <stdlib> 3 #include <stdbool.h> 3 4 #include "bench.h" 4 5 #include "cfa-stack.h" … … 9 10 ofstream out = { "/dev/null" }; 10 11 int max = 0, val = 42; 11 stack( int ) s i, t;12 stack( int ) s, t; 12 13 13 REPEAT_TIMED( "push_int", N, push( s i, val ); )14 TIMED( "copy_int", t = s i; )15 TIMED( "clear_int", clear( s i); )14 REPEAT_TIMED( "push_int", N, push( s, val ); ) 15 TIMED( "copy_int", t = s; ) 16 TIMED( "clear_int", clear( s ); ) 16 17 REPEAT_TIMED( "pop_int", N, int x = pop( t ); max = max( x, max ); ) 17 18 REPEAT_TIMED( "print_int", N/2, out | val | ':' | val | endl; ) 18 19 19 pair( _Bool, char ) max = { (_Bool) 0, '\0' }, val = { (_Bool)1, 'a' };20 pair( _Bool, char ) max = { (_Bool)false, '\0' }, val = { (_Bool)true, 'a' }; 20 21 stack( pair( _Bool, char ) ) s, t; 21 22
Note: See TracChangeset
for help on using the changeset viewer.