-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
noun: align u3n_prog to 8 byte boundaries
- Loading branch information
Showing
6 changed files
with
72 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/// @file | ||
|
||
#include "manage_v4.h" | ||
#include "stdio.h" | ||
#include "manage.h" | ||
#include "allocate.h" | ||
#include "vortex.h" | ||
#include "options.h" | ||
|
||
/* u3m_v4_migrate: perform loom migration if necessary. | ||
*/ | ||
void | ||
u3m_v4_migrate(void) | ||
{ | ||
fprintf(stderr, "loom: bytecode alignment migration running...\r\n"); | ||
|
||
c3_w* mem_w = u3_Loom + u3a_walign; | ||
c3_w siz_w = c3_wiseof(u3v_home); | ||
c3_w len_w = u3C.wor_i - u3a_walign; | ||
c3_w* mat_w = c3_align(mem_w + len_w - siz_w, u3a_balign, C3_ALGLO); | ||
|
||
u3H = (void *)mat_w; | ||
u3R = &u3H->rod_u; | ||
|
||
u3m_reclaim(); | ||
|
||
u3H->ver_w = U3V_VER4; | ||
|
||
fprintf(stderr, "loom: bytecode alignment migration done\r\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// @file | ||
|
||
#ifndef U3_MANAGE_V4_H | ||
#define U3_MANAGE_V4_H | ||
|
||
/** System management. | ||
**/ | ||
/* u3m_v3_migrate: perform memoization loom migration if necessary. | ||
*/ | ||
void | ||
u3m_v4_migrate(void); | ||
|
||
#endif /* ifndef U3_MANAGE_V3_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters