Explorar o código

added gitignore

Nicolas Winkler %!s(int64=8) %!d(string=hai) anos
pai
achega
52068f7694
Modificáronse 14 ficheiros con 15 adicións e 62 borrados
  1. 15 0
      .gitignore
  2. BIN=BIN
      .uomap.cpp.swp
  3. BIN=BIN
      a.out
  4. 0 9
      inTest.cpp
  5. 0 41
      jittest.cpp
  6. BIN=BIN
      jittest.o
  7. BIN=BIN
      src/.Parser.cpp.swp
  8. BIN=BIN
      src/Optimizer.o
  9. 0 0
      src/Optimizer.s
  10. BIN=BIN
      src/Parser.o
  11. BIN=BIN
      src/a.out
  12. BIN=BIN
      src/main.o
  13. BIN=BIN
      src/zombie
  14. 0 12
      uomap.cpp

+ 15 - 0
.gitignore

@@ -0,0 +1,15 @@
+# object files
+*.o
+*.obj
+
+# libs
+*.so
+*.a
+*.dylib
+*.dll
+
+# executable files
+a.out
+zombie
+*.exe
+

BIN=BIN
.uomap.cpp.swp


BIN=BIN
a.out


+ 0 - 9
inTest.cpp

@@ -1,9 +0,0 @@
-#include <iostream>
-
-int main()
-{
-    char c;
-    std::cin >> c;
-    return c;
-}
-

+ 0 - 41
jittest.cpp

@@ -1,41 +0,0 @@
-#include "asmjit/src/asmjit/asmjit.h"
-
-
-
-using namespace asmjit;
-
-// Signature of the generated function.
-typedef int (*Func)(void);
-
-int value()
-{
-  return 42;
-}
-
-int main(int argc, char* argv[]) {
-  JitRuntime rt;                          // Runtime specialized for JIT code execution.
-
-  CodeHolder code;                        // Holds code and relocation information.
-  code.init(rt.getCodeInfo());            // Initialize to the same arch as JIT runtime.
-
-  X86Assembler a(&code);                  // Create and attach X86Assembler to `code`.
-  a.mov(x86::eax, 1);                     // Move one to 'eax' register.
-  a.call(reinterpret_cast<uint64_t> (&value));
-  a.ret();                                // Return from function.
-  // ----> X86Assembler is no longer needed from here and can be destroyed <----
-
-  Func fn;
-  Error err = rt.add(&fn, &code);         // Add the generated code to the runtime.
-  if (err) return 1;                      // Handle a possible error returned by AsmJit.
-  // ----> CodeHolder is no longer needed from here and can be destroyed <----
-
-  int result = fn();                      // Execute the generated code.
-  printf("%d\n", result);                 // Print the resulting "1".
-
-  // All classes use RAII, all resources will be released before `main()` returns,
-  // the generated function can be, however, released explicitly if you intend to
-  // reuse or keep the runtime alive, which you should in a production-ready code.
-  rt.release(fn);
-
-  return 0;
-}

BIN=BIN
jittest.o


BIN=BIN
src/.Parser.cpp.swp


BIN=BIN
src/Optimizer.o


+ 0 - 0
src/Optimizer.s


BIN=BIN
src/Parser.o


BIN=BIN
src/a.out


BIN=BIN
src/main.o


BIN=BIN
src/zombie


+ 0 - 12
uomap.cpp

@@ -1,12 +0,0 @@
-#include <unordered_map>
-#include <iostream>
-
-int main()
-{
-    std::unordered_map<int, int> a;
-    a[5] = 3;
-    a[2]++;
-
-    std::cout << a[2] << std::endl;
-}
-