Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第四部分
来源:互联网 发布:租用阿里云vps 编辑:程序博客网 时间:2024/04/30 19:26
Testing
To test the simulator use these commands
1
$
clear
2
$
cd
$IDIR
3
$ gedit hello.c
Now in Gedit you can write your program like this (You may modify it)
[c]
#include<stdio.h>
main (void)
{
printf("My name is T.J. I'm a student in UFL. This is the first time sharing my knowledge. Hope this can be helpful!");
}
[/c]
Once you are done writing the code, use the following command to test it.
1
$ $IDIR/bin/sslittle-na-sstrix-gcc -o hello hello.c
2
$ $IDIR/simplesim-3.0/sim-safe hello
You would “hopefully” get an output similar to this
view sourceprint?
01
sim: ** starting functional simulation **
02
My name is T.J. I'm a student in UFL. This is the first time sharing my knowledge. Hope this can be helpful!
04
05
sim: ** simulation statistics **
06
sim_num_insn 9242
# total number of instructions executed
07
sim_num_refs 4328
# total number of loads and stores executed
08
sim_elapsed_time 1
# total simulation time in seconds
09
sim_inst_rate 9242.0000
# simulation speed (in insts/sec)
10
ld_text_base 0×00400000
# program text (code) segment base
11
ld_text_size 71968
# program text (code) size in bytes
12
ld_data_base 0×10000000
# program initialized data segment base
13
ld_data_size 8528
# program init’ed `.data’ and uninit’ed `.bss’ size in bytes
14
ld_stack_base 0×7fffc000
# program stack segment base (highest address in stack)
15
ld_stack_size 16384
# program initial stack size
16
ld_prog_entry 0×00400140
# program entry point (initial PC)
17
ld_environ_base 0×7fff8000
# program environment base address address
18
ld_target_big_endian 0
# target executable endian-ness, non-zero if big endian
19
mem.page_count 26
# total number of pages allocated
20
mem.page_mem 104k
# total size of memory pages allocated
21
mem.ptab_misses 26
# total first level page table misses
22
mem.ptab_accesses 495046
# total page table accesses
23
mem.ptab_miss_rate 0.0001
# first level page table miss rate
That's it! Congratulations! Hope my changes helpful
声明:此日志是转自他人,
来源http://blog.csdn.net/bluefly21/article/details/6869719
0 0
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第四部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第一部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第二部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第三部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar
- simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar
- 在Ubuntu下安装SimpleScalar
- Ubuntu 安装SimpleScalar过程
- Ubuntu 安装SimpleScalar过程
- Ubuntu 14.10安装simplescalar
- 在Ubuntu12.04上安装SimpleScalar的方法
- Simplescalar在Ubuntu12.04 64位上的安装流程
- ubuntu9.10安装simplescalar
- simplescalar安装手册
- simplescalar自动安装
- Simplescalar安装流程
- SimpleScalar的安装与配置
- simplescalar模拟器
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第一部分
- Java中的泛型
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第二部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第三部分
- LG发狠,12款电视齐上市
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第四部分
- ubuntu下安装和配置CVS
- gdb基本使用方法简介
- GDB调试及使用实例2
- float.h
- getopt 详解 getopt与optarg
- SPEC 2000 安装
- linux 重命名文件和文件夹
- Linux命令之time - 测定一个命令的资源使用情况
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
马金东
金东赫
金东集团
金东律
金东宾馆
金东网站
金东纸业
金华金东
金东商场
金东物流
金东购物
金东振
金东社区
金东e卡
金东二手房
金东名苑
金东华府
欠金东金条9000三年没还
下载金东金融app
金东金融app下载
金东区公共资源交易中心
金东区人才网
金华市金东区
金中
金丰
金丰集团
金丰多大了
金丰公社
金丰科技
金丰园
金丰门窗
金丰年龄
金丰管业
金丰气化炉
金丰年
金丰实木门
廊坊金丰农科园
演员金丰年龄
金丰花园二手房
十堰金丰酒店
金丰木门厂家