This commit is contained in:
mpabi 2024-05-26 15:19:37 +00:00
parent ff66e2ef5d
commit c54b4ce2eb
2 changed files with 8 additions and 1 deletions

View File

@ -136,11 +136,16 @@ int alg(char *ptr) {
// gdb: p/x (model[]*)p[0].len
// gdb: p/s (char *)(model[]*)p[2].ptr
// gdb: p *p@5
// :) powered by rv32i
int main() {
char *str = " Success is often defined as the ability to reach your goals in life, whatever those goals may be. In some ways, a better word for success might be attainment, accomplishment, or progress. It is not necessarily a destination but a journey that helps develop the skills and resources you need to thrive.";
alg(str);
asm ("nop");
bubbleSort(p,10);
asm ("nop");
return 1;
}

View File

@ -8,4 +8,6 @@ struct model {
uint32_t len ;
};
void bubbleSort(model arr[], int n);
#endif