Changeset 82c367d for doc/papers


Ignore:
Timestamp:
Mar 3, 2018, 7:54:50 AM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

updates

Location:
doc/papers/general
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/general/Paper.tex

    r000ff2c r82c367d  
    1313\usepackage{pslatex}                                            % reduce size of san serif font
    1414\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}
    1517
    1618\setlength{\textheight}{9in}
     
    20202022\begin{tabular}{@{}l@{\hspace{\parindentlnth}}l@{\hspace{\parindentlnth}}l@{}}
    20212023\begin{cfa}
    2022 20_hh     // signed char
    2023 21_hhu   // unsigned char
    2024 22_h      // signed short int
    2025 23_uh    // unsigned short int
    2026 24z        // size_t
    2027 \end{cfa}
    2028 &
    2029 \begin{cfa}
    2030 20_L8     // int8_t
    2031 21_ul8    // uint8_t
    2032 22_l16    // int16_t
    2033 23_ul16  // uint16_t
    2034 24_l32    // int32_t
    2035 \end{cfa}
    2036 &
    2037 \begin{cfa}
    2038 25_ul32      // uint32_t
    2039 26_l64        // int64_t
    2040 27_l64u      // uint64_t
    2041 26_L128     // int128
    2042 27_L128u  // unsigned int128
     202420`_hh`     // signed char
     202521`_hhu`   // unsigned char
     202622`_h`       // signed short int
     202723`_uh`     // unsigned short int
     202824`z`         // size_t
     2029\end{cfa}
     2030&
     2031\begin{cfa}
     203220`_L8`      // int8_t
     203321`_ul8`     // uint8_t
     203422`_l16`     // int16_t
     203523`_ul16`   // uint16_t
     203624`_l32`     // int32_t
     2037\end{cfa}
     2038&
     2039\begin{cfa}
     204025`_ul32`      // uint32_t
     204126`_l64`        // int64_t
     204227`_l64u`      // uint64_t
     204326`_L128`     // int128
     204427`_L128u`   // unsigned int128
    20432045\end{cfa}
    20442046\end{tabular}
     
    24652467        ofstream out = { "cfa-out.txt" };
    24662468        int max = 0, val = 42;
    2467         stack( int ) si, t;
    2468 
    2469         REPEAT_TIMED( "push_int", N, push( si, val ); )
    2470         TIMED( "copy_int", t = si; )
    2471         TIMED( "clear_int", clear( si ); )
     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 ); )
    24722474        REPEAT_TIMED( "pop_int", N, int x = pop( t ); max = max( x, max ); )
    24732475        REPEAT_TIMED( "print_int", N/2, out | val | ':' | val | endl; )
    24742476
    2475         pair( _Bool, char ) max = { (_Bool)0, '\0' }, val = { (_Bool)1, 'a' };
     2477        pair( _Bool, char ) max = { false, '\0' }, val = { true, 'a' };
    24762478        stack( pair( _Bool, char ) ) s, t;
    24772479
     
    26342636
    26352637The 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.
     2638This 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
    26372640% 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.
    26382641
  • doc/papers/general/evaluation/cfa-bench.c

    r000ff2c r82c367d  
    11#include <fstream>
    22#include <stdlib>
     3#include <stdbool.h>
    34#include "bench.h"
    45#include "cfa-stack.h"
     
    910        ofstream out = { "/dev/null" };
    1011        int max = 0, val = 42;
    11         stack( int ) si, t;
     12        stack( int ) s, t;
    1213
    13         REPEAT_TIMED( "push_int", N, push( si, val ); )
    14         TIMED( "copy_int", t = si; )
    15         TIMED( "clear_int", clear( si ); )
     14        REPEAT_TIMED( "push_int", N, push( s, val ); )
     15        TIMED( "copy_int", t = s; )
     16        TIMED( "clear_int", clear( s ); )
    1617        REPEAT_TIMED( "pop_int", N, int x = pop( t ); max = max( x, max ); )
    1718        REPEAT_TIMED( "print_int", N/2, out | val | ':' | val | endl; )
    1819
    19         pair( _Bool, char ) max = { (_Bool)0, '\0' }, val = { (_Bool)1, 'a' };
     20        pair( _Bool, char ) max = { (_Bool)false, '\0' }, val = { (_Bool)true, 'a' };
    2021        stack( pair( _Bool, char ) ) s, t;
    2122
Note: See TracChangeset for help on using the changeset viewer.