Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtansia committed Feb 10, 2017
1 parent fc314e8 commit 49e04b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ For each input file it will output assembly defining:
Roughly equivalent to this pseudocode:
unsigned int identifier_size = ...
unsigned char identifier[identifier_size] = { ... }
unsigned char identifier_end[] = identifier + identifier_size
const unsigned int identifier_size = ...
const unsigned char identifier[identifier_size] = { ... }
const unsigned char identifier_end[] = identifier + identifier_size
Where {identifier} is the input file's name,
sanitized to produce a legal C identifier, by doing the following:
Expand Down Expand Up @@ -79,9 +79,9 @@ hello_world_txt_size: .int 11
You can then use it from your program by for example creating a header like so:

```c
extern unsigned char hello_world_txt[];
extern unsigned char hello_world_txt_end[];
extern unsigned int hello_world_txt_size;
extern const unsigned char hello_world_txt[];
extern const unsigned char hello_world_txt_end[];
extern const unsigned int hello_world_txt_size;
```

## CMake
Expand Down

0 comments on commit 49e04b9

Please sign in to comment.