Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Generated by Nim Compiler v0.16.1 */
- /* (c) 2017 Andreas Rumpf */
- /* The generated code is subject to the original license. */
- /* Compiled for: Linux, amd64, gcc */
- /* Command for C compiler:
- gcc -c -w -I/home/tiber/nim_experiments/Nim/lib -o /home/tiber/nim_experiments/nimcache/test.o /home/tiber/nim_experiments/nimcache/test.c */
- #define NIM_NEW_MANGLING_RULES
- #define NIM_INTBITS 64
- #include "nimbase.h"
- #undef linux
- static N_INLINE(void, initStackBottomWith)(void* locals);
- N_NOINLINE(void, setStackBottom)(void* theStackBottom);
- static N_INLINE(void, nimFrame)(TFrame* s);
- N_NOINLINE(void, stackOverflow_II46IjNZztN9bmbxUD8dt8g)(void);
- static N_INLINE(void, popFrame)(void);
- NIM_EXTERNC N_NOINLINE(void, systemInit000)(void);
- NIM_EXTERNC N_NOINLINE(void, systemDatInit000)(void);
- NIM_EXTERNC N_NOINLINE(void, NimMainModule)(void);
- NIM_EXTERNC N_NOINLINE(void, testDatInit000)(void);
- extern TFrame* framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
- static N_INLINE(void, initStackBottomWith)(void* locals) {
- setStackBottom(locals);
- }
- void PreMainInner() {
- systemInit000();
- testDatInit000();
- }
- void PreMain() {
- void (*volatile inner)();
- systemDatInit000();
- inner = PreMainInner;
- initStackBottomWith((void *)&inner);
- (*inner)();
- }
- int cmdCount;
- char** cmdLine;
- char** gEnv;
- N_CDECL(void, NimMainInner)(void) {
- NimMainModule();
- }
- N_CDECL(void, NimMain)(void) {
- void (*volatile inner)();
- PreMain();
- inner = NimMainInner;
- initStackBottomWith((void *)&inner);
- (*inner)();
- }
- int main(int argc, char** args, char** env) {
- cmdLine = args;
- cmdCount = argc;
- gEnv = env;
- NimMain();
- return nim_program_result;
- }
- static N_INLINE(void, nimFrame)(TFrame* s) {
- NI T1_;
- T1_ = (NI)0;
- {
- if (!(framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA4_;
- T1_ = ((NI) 0);
- }
- goto LA2_;
- LA4_: ;
- {
- T1_ = ((NI) ((NI16)((*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1))));
- }
- LA2_: ;
- (*s).calldepth = ((NI16) (T1_));
- (*s).prev = framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
- framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = s;
- {
- if (!((*s).calldepth == ((NI16) 2000))) goto LA9_;
- stackOverflow_II46IjNZztN9bmbxUD8dt8g();
- }
- LA9_: ;
- }
- static N_INLINE(void, popFrame)(void) {
- framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).prev;
- }
- NIM_EXTERNC N_NOINLINE(void, NimMainModule)(void) {
- nimfr_("test", "test.nim")
- popFrame();
- }
- NIM_EXTERNC N_NOINLINE(void, testDatInit000)(void) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement