Skip to content

Commit

Permalink
Merge pull request #160 from arceos-org/improve_readme
Browse files Browse the repository at this point in the history
  • Loading branch information
equation314 authored Jul 24, 2024
2 parents 5f67fda + 3c9412a commit 3598fd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Examples are given below and in the [app-helloworld](https://github.com/arceos-o
```

3. Call library functions from `axstd` in your code, just like the Rust [std](https://doc.rust-lang.org/std/) library.

Remember to annotate the `main` function with `#[no_mangle]` (see this [example](examples/helloworld/src/main.rs)).

4. Build your application with ArceOS, by running the `make` command in the application directory:

```bash
Expand All @@ -135,7 +138,7 @@ Examples are given below and in the [app-helloworld](https://github.com/arceos-o
└── features.txt # optional, if only use default features
```

2. Add build targets to `axbuild.mk`, add features to enable to `features.txt` (see this [example](apps/c/sqlite3/)):
2. Add build targets to `axbuild.mk`, add features to enable to `features.txt` (see this [example](examples/httpserver-c/)):

```bash
# in axbuild.mk
Expand Down

0 comments on commit 3598fd1

Please sign in to comment.