Code Monkey home page Code Monkey logo

lpcc's Introduction

LPCC

LPC代码编译调试项目,使用方式:

lpcc config.ini <你的代码文件>

如在项目根目录新建文件test.c

void create()
{
    debug(__FILE__);
}

编译运行:lpcc config.ini test

➜  lpcc git:(master) ✗ lpcc config.ini test
Processing config file: config.ini
New Debug log location: "log/debug.log".
Initializing internal stuff ....
Event backend in use: epoll
Loading simul_efun file : kernel/simulated_efun
Loading master file: kernel/master
"/test.c"
NAME: /test.c
INHERITS:
      name                    fio    vio
      ----------------        ---    ---
FUNCTIONS:
      name                  offset  mods   flags   fio  # locals  # args
      --------------------- ------  ----  -------  ---  --------  ------
   0: create                     0   +--  --s----              0       0

;;; test.c

VARIABLES:
STRINGS:
   0: test.c
   1: include/globals.h
   2: /test.c
DISASSEMBLY:

;; Function: void create()
0000:  0E 02                     short_string        ; "/test.c"
0002:  71 00 00 01               simul_efun          ; "debug" args: 1
0006:  01                        pop                 ;
0007:  2F                        return_zero         ;
; test.c:3

;;;  *** Line Number Info ***

absolute line -> (file, line) table:
0 lines from 1 [test.c]
1 lines from 2 [include/globals.h]
5 lines from 1 [test.c]

address -> absolute line table:
0000-0007: 4
Trace duration: 7007.700000 us, dumping 29 events to trace_lpcc.json in separate thread.
[thread 139666774755072d]: Dump trace successfully to file trace_lpcc.json, cost 0 ms.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.