hw6

所属分类:其他
开发工具:Others
文件大小:206KB
下载次数:0
上传日期:2020-10-10 09:27:30
上 传 者sambalol
说明:  Dataflow UPenn example code. Homework 6.

文件列表:
hw6_temp (0, 2017-04-25)
hw6_temp\alias.ml (4134, 2017-04-25)
hw6_temp\analysis.ml (2664, 2017-04-25)
hw6_temp\analysistests.ml (6517, 2017-04-25)
hw6_temp\ast.ml (3002, 2017-04-25)
hw6_temp\astlib.ml (18113, 2017-04-25)
hw6_temp\atprograms (0, 2017-04-25)
hw6_temp\atprograms\arrayargs.oat (247, 2017-04-25)
hw6_temp\atprograms\arrayargs1.oat (233, 2017-04-25)
hw6_temp\atprograms\arrayargs2.oat (221, 2017-04-25)
hw6_temp\atprograms\arrayargs3.oat (345, 2017-04-25)
hw6_temp\atprograms\binary_gcd.oat (536, 2017-04-25)
hw6_temp\atprograms\binary_search.oat (1242, 2017-04-25)
hw6_temp\atprograms\bsort.oat (648, 2017-04-25)
hw6_temp\atprograms\bubble_sort.oat (779, 2017-04-25)
hw6_temp\atprograms\conquest.oat (3837, 2017-04-25)
hw6_temp\atprograms\count_sort.oat (1076, 2017-04-25)
hw6_temp\atprograms\determinant_size2.oat (965, 2017-04-25)
hw6_temp\atprograms\easy_p1.oat (28, 2017-04-25)
hw6_temp\atprograms\easy_p2.oat (96, 2017-04-25)
hw6_temp\atprograms\easy_p3.oat (300, 2017-04-25)
hw6_temp\atprograms\easy_p4.oat (668, 2017-04-25)
hw6_temp\atprograms\easy_p5.oat (381, 2017-04-25)
hw6_temp\atprograms\easy_p6.oat (128, 2017-04-25)
hw6_temp\atprograms\easy_p7.oat (219, 2017-04-25)
hw6_temp\atprograms\easyrun1.oat (55, 2017-04-25)
hw6_temp\atprograms\easyrun10.oat (354, 2017-04-25)
hw6_temp\atprograms\easyrun2.oat (60, 2017-04-25)
hw6_temp\atprograms\easyrun3.oat (141, 2017-04-25)
hw6_temp\atprograms\easyrun4.oat (119, 2017-04-25)
hw6_temp\atprograms\easyrun5.oat (151, 2017-04-25)
hw6_temp\atprograms\easyrun6.oat (125, 2017-04-25)
hw6_temp\atprograms\easyrun7.oat (121, 2017-04-25)
hw6_temp\atprograms\easyrun8.oat (145, 2017-04-25)
hw6_temp\atprograms\easyrun9.oat (159, 2017-04-25)
hw6_temp\atprograms\error1.oat (83, 2017-04-25)
hw6_temp\atprograms\error10.oat (71, 2017-04-25)
hw6_temp\atprograms\error11.oat (33, 2017-04-25)
hw6_temp\atprograms\error2.oat (43, 2017-04-25)
hw6_temp\atprograms\error3.oat (22, 2017-04-25)
... ...

Using main.native for testing: * To run the automated test harness do: - on OS X: ./main.native --test - on Linux: ./main.native -linux --test * To compile ll files using the 341 backend: ./main.native path/to/foo.ll - creates output/foo.s backend assembly code - creates output/foo.o assembled object file - creates a.out linked executable NOTE: by default the .s and .o files are created in a directory called output, and the filenames are chosen so that multiple runs of the compiler will not overwrite previous outputs. foo.ll will be compiled first to foo.s then foo_1.s, foo_2.s, etc. * To compile ll files using the clang backend: ./main.native --clang path/to/foo.ll * Useful flags: --print-ll echoes the ll program to the terminal --print-x86 echoes the resulting .s file to the terminal --simulate-x86 runs the resulting .s file through the reference x86 simulator and outputs the result to the console --execute-x86 runs the resulting a.out file natively (applies to either the 341 backend or clang-compiled code) -v generates verbose output, showing which commands are used for linking, etc. -op change the output path [DEFAULT=output] -o change the generated executable's name [DEFAULT=a.out] -S stop after generating .s files -c stop after generating .o files -h or --help display the list of options * Example uses: Run the test case /programs/factrect.ll using the 341 backend: ./main.native --execute-x86 programs/factrect.ll --------------------------------------------------------------- Executing: a.out * a.out returned 120 Run the test

近期下载者

相关文件


收藏者