annotate src/allocate/allocate_test.h @ 9:14c604cfa711

modify directories
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Thu, 02 Apr 2015 01:05:52 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 typedef struct DataSegment1 {
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 int i; // 4 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 char c[10]; // 10 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 // padding 2 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 } data1;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 typedef struct DataSegment2 {
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 int x; // 4 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 int y; // 4 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 int z; // 4 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 } data2;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 typedef struct metaDataSegment {
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 size_t size; // 8 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 void* ds; // 8 byte
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 } mdata;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 typedef struct Context_st {
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 void* ds;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 void* mds;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 void* ds_heap;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 void* mds_heap;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 __code (*next)();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 } Context;
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 __code start_code();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 __code meta_start_code();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 __code code1();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 __code meta_code1();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 __code code2();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 __code meta_code2();
14c604cfa711 modify directories
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 __code exit_code();