顯示具有 compiler 標籤的文章。 顯示所有文章
顯示具有 compiler 標籤的文章。 顯示所有文章

2024年1月23日 星期二

tree sitter parser generator incremental parsing library tree sitter pascal Grammar Pascal dialects tree sitter parser generator incremental parsing library COMPILER CONSTRUCTION

 https://github.com/Isopod/tree-sitter-pascal
https://siraben.dev/2022/03/01/tree-sitter.html
https://www.reddit.com/r/rust/comments/125zdyw/blog_post_enabling_lowlatency_syntaxaware_editing/

https://github.com/rickard67/language-server-protocol
https://github.com/rickard67/LSP-Pascal-Library

Element Patterns | IntelliJ Platform Plugin SDK
https://plugins.jetbrains.com/docs/intellij/element-patterns.html
CURLY_BRACE_REGEX mangles regex properties · Issue #380 · tree-sitter/tree-sitter
https://github.com/tree-sitter/tree-sitter/issues/380
https://github.com/apple/swift/tree/c83e89062038833e049f549538186dac36a2e7a6/lib/Syntax#trivia
Enabling low-latency, syntax-aware editing using Tree-sitter

Describing Oracle Syntax
https://www.dba-oracle.com/t_oracle_syntax.htm
https://www.cs.fsu.edu/~engelen/courses/COP402003/notes3.html
Syntax von Pascal in Backus-Naur Form (BNF)
https://condor.depaul.edu/ichu/csc447/notes/wk2/pascal.html
Visual AST for ANTLR Generated Parser Output - CodeProject
https://www.codeproject.com/Articles/371453/Visual-AST-for-ANTLR-Generated-Parser-Output

pascal grammar bnf to enumerate  code Completion
auto code Completion suggestions accuracy efficiency
https://github.com/jrfferreira/syntax-based-completion
http://teiid.github.io/teiid-documents/10.2.x/content/reference/BNF_for_SQL_Grammar.html

CS 375: Compilers
https://www.cs.utexas.edu/users/novak/cs375.html
Compilers: Vocabulary
https://www.cs.utexas.edu/users/novak/cs375vocab.html

2024年1月22日 星期一

"visual programming" "grammar TREE" AST CST Syntax semantic

 Software Languages: Syntax, Semantics, and Metaprogramming [1st ed. 2018] 3319907980, 9783319907987
SI413: Specifying Syntax ReadingSection 2.1 of Programming Language Pragmatics.Homework Do this assignment Due at the start of next class.Specifying programming languages: syntax vs. semantics
https://www.usna.edu/Users/cs/wcbrown/courses/F19SI413/lec/l07/lec.html
https://blog.trailofbits.com/2022/12/22/syntax-searching-c-c-clang-ast/

programming grammar TREE Syntax semantic enumeration token completion completion

Software II: Principles of Programming Languages We call the grammatical component the token. • The formal model for lexical analysis is a finite automaton. • This is sometimes complicated by the difficulty in.

Summary of representative literature on neural-network-based intelligence code completion approaches
code completion  intelligent completion api completion
https://en.wikipedia.org/wiki/Intelligent_code_completion
token completion completion

https://www.antlr.org/
https://dev.to/cad97/lossless-syntax-trees-280c
Lossless Syntax Trees - DEV Community
Related Reading

    Matklad's Modern Parser Generator
    rust-analyzer's architecture overview
        [video] rust analyzer syntax trees
    Rust "libsyntax 2.0" RFC
    oilshell's From AST to Lossless Syntax Tree
    Case Studies:
        JetBrains Program Structure Interface
            Kotlin PSI
        Swift libSyntax
        rust-analyzer ra_parser and ra_syntax
        Roslyn Syntax API
https://github.com/CAD97/tinyc/tree/blog-03

Implementation of Semantic Analysis | Compilers
GitHub A real design example of a new Context-Free Grammar, for a new Turing-complete programming language. ... Leaves are very simple Token Types, ...

Abstract Syntax Tree for Programming Language ...
 But it should be noted that partial tokens lose contextual syntax and semantics, while complete tokens contain complete code semantics.

Xtext - The Grammar Language
This allows to consume the complete remaining input of a file starting with a special delimiter. terminal UNCLOSED_STRING : '"' (!'"')* EOF;. The EOF token ...

"Backus-Naur Form" "Regular expression" "Regular language" "Concurrent" "Parallelism " asynchronous programming blocking and non blocking gentle introduction multithreading Difference between Multiprogramming Multitasking Multithreading Multiprocessing Inter process communication

 
 Regular language
 Regular expression
 Commentz Walter algorithm
 Rabin  Karp algorithm
 Aho Corasick algorithm
 Needleman Wunsch algorithm
 Smith Waterman algorithm
 Hirschberg algorithm

https://en.wikipedia.org/wiki/Regular_language
https://en.wikipedia.org/wiki/Regular_expression
https://en.wikipedia.org/wiki/String_(computer_science)
https://en.wikipedia.org/wiki/String-searching_algorithm
Commentz-Walter algorithm
https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithm
https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm
https://en.wikipedia.org/wiki/Needleman%E2%80%93Wunsch_algorithm
https://en.wikipedia.org/wiki/Smith%E2%80%93Waterman_algorithm
https://en.wikipedia.org/wiki/Hirschberg%27s_algorithm

Commentz Walter algorithm Rabin  Karp algorithm Aho Corasick algorithm Needleman Wunsch algorithm Smith Waterman algorithm Hirschberg algorithm
https://academic-accelerator.com/encyclopedia/hirschberg-s-algorithm
https://wiki.alquds.edu/?query=Rabin%E2%80%93Karp_algorithm
https://en.turkcewiki.org/wiki/Commentz-Walter_algorithm
https://turcomat.org/index.php/turkbilmat/article/download/7649/6066/13814
https://handwiki.org/wiki/Hirschberg%27s_algorithm
https://academic-accelerator.com/encyclopedia/needleman-wunsch-algorithm
https://en.turkcewiki.org/wiki/String_searching
https://handwiki.org/wiki/Generalized_suffix_tree
https://static.hlt.bme.hu/semantics/external/pages/n-gram/en.wikipedia.org/wiki/Approximate_string_matching.html
https://github.com/farhanma/pyseq
https://www.researchgate.net/publication/222416603_Parallel_biological_sequence_comparison_using_prefix_computations
https://doc.lagout.org/science/0_Computer%20Science/2_Algorithms/Pattern%20Matching%20Algorithms%20%5BApostolico%20%26%20Galill%201997-05-29%5D.pdf
https://www.wikiwand.com/en/Bitap_algorithm
Alignment Algorithm for Sequences
https://arxiv.org/pdf/1210.8398
Smith–Waterman algorithm: Sequence Alignment, Peptide Sequence, DNA Sequence, Needleman–Wunsch Algorithm, Dynamic Programming, Substitution Matrix, Expected Value, Graphics Processing Unit
 
Mapping Dynamic Programming Algorithms on Graphics Deutsche Nationalbibliothek  In this work, the efficient mapping of the alignment stage onto GPU by using a combination of wavefront and matrix-matrix product tech- niques

Dynamic Matrix Algorithms and Applications in Convex and ...DiVA portal https://www.diva-portal.org › FULLTEXT01PDF  J van den Brand  Dynamic algorithms are used to efficiently maintain solutions to problems where the input undergoes some changes.

Matrix Representation for Genetic Algorithms

https://github.com/my8100/notes/blob/master/programming/asynchronous-programming-blocking-and-non-blocking.md
https://github.com/my8100/notes/blob/master/programming/gentle-introduction-multithreading.md
Difference between Multiprogramming, Multitasking, Multithreading and Multiprocessing
Wikipedia - Inter-process communication
Wikipedia - Process (computing)
Wikipedia - Concurrency (computer science)
Wikipedia - Parallel computing
Wikipedia - Multithreading (computer architecture)
Stackoverflow - Threads & Processes Vs MultiThreading & Multi-Core/MultiProcessor: How they are mapped?
Stackoverflow - Difference between core and processor?
Wikipedia - Thread (computing)
Wikipedia - Computer multitasking
Ibm.com - Benefits of threads
Haskell.org - Parallelism vs. Concurrency
Stackoverflow - Can multithreading be implemented on a single processor system?
HowToGeek - CPU Basics: Multiple CPUs, Cores, and Hyper-Threading Explained
Oracle.com - 1.2 What is a Data Race?
Jaka's corner - Data race and mutex
Wikipedia - Thread safety
Preshing on Programming - Atomic vs. Non-Atomic Operations
Wikipedia - Green threads
Stackoverflow - Why should I use a thread vs. using a process?

2023年12月21日 星期四

parsing js source code rtti type javascript source code diagram generator type report

 parsing js source code rtti type

https://www.quora.com/what-is-a-good-javascript-parser-written-in-java

https://github.com/arthursonzogni/diagon

javascript source code diagram generator type report
https://www.gituml.com/

 https://github.com/topics/ascii-diagram

https://github.com/rishirajrandive/uml-parser

    Javaparser: Easy to understand and use, it gives Abstract Syntax Tree (AST) from java code. Parsed java class can be easily processed to generate the UML diagram
    PlantUML: UML diagrams can be generated using simple and intuitive language used by PlantUML.
    GraphViz: Works with PlantUML to generate diagrams
    AspectJ: Using AspectJ to parse the Java code and then create relevant grammar for PlantUML to generate the UML Sequence Diagram.

20+ JavaScript libraries to draw your own diagrams (2022 edition)
https://modeling-languages.com/javascript-drawing-libraries-diagrams/

SwiftPlantUML — generate class diagrams from Swift with Swift
https://github.com/MarcoEidinger/SwiftPlantUML-Xcode-Extension
https://github.com/MarcoEidinger/SwiftPlantUML

javascript source code parsing js source code rtti type diagram generator type UML class diagrams rtti  Information Properties list TypInfo

https://github.com/azeznassar/JavaScript-UML-Generator
https://dhtmlx.com/blog/javascript-uml-class-diagram-dhtmlx/
https://github.com/cs-au-dk/TAJS
https://github.com/demike/TsUML2

 javascript-libraries-for-drawing-uml-class-diagramms
https://stackoverflow.com/questions/21696352/tools-to-generate-uml-diagrams-for-exisiting-classes-in-javascript
Raphaël—JavaScript Library
http://dmitrybaranovskiy.github.io/raphael/
https://en.wikipedia.org/wiki/List_of_Unified_Modeling_Language_tools
https://plantuml.com/zh/
https://github.com/christophevg/UmlCanvas
https://electra.academy/
https://www.jointjs.com/
https://github.com/clientIO/joint
https://gojs.net/latest/index.html
https://github.com/jgraph/mxgraph
https://app.diagrams.net/
http://www.objectplayground.com/
http://mermaid.js.org/#/
https://js.cytoscape.org/
https://p5js.org/
https://jsplumbtoolkit.com/
http://paperjs.org/
http://fabricjs.com/
https://d3js.org/


What is Runtime Environment in JS? - Preethika - Medium
https://medium.com/@preethika200154200435/what-is-runtime-environment-in-js-9d5a57a66bd6
The JS Engine Web/Global APIs  Callback Queue. Microtask Queue.  Event Loop.A JavaScript Runtime consists of the following component
Understanding the JavaScript Runtime Environment and DOM Nodes | Vahid Dejwakh
https://vahid.blog/post/2021-03-21-understanding-the-javascript-runtime-environment-and-dom-nodes/

javascript runtime type information  classes  runtime   Javascript Concepts
https://slawinski.dev/blog/javascript-runtime-environment-web-api-task-queue-and-event-loop/
https://learning-notes.mistermicheels.com/javascript/typescript/runtime-type-checking/
https://blog.logrocket.com/methods-for-typescript-runtime-type-checking/
https://nestjs.com/
https://www.npmjs.com/package/class-validator
https://tsoa-community.github.io/docs/
https://dev.to/ahsanulkabir/javascript-under-the-hood-part-1-overview-of-runtime-environment-3jbp

2023年5月1日 星期一

generic queue linked postfix expression reverse polish multi linked structure

 https://hetalrachh.home.blog/2020/01/23/evaluating-a-reverse-polish-notation-using-stack-data-structure/

2023年3月14日 星期二

Anti-Debug: Debug Flags execution sandbox debug tools ret jmp ntglobalflag

 https://www.google.com/search?q=execution+sandbox+debug+tools+ret+jmp+ntglobalflag&client=firefox-b-d&sxsrf=AJOqlzXnPaMUdTk-A-vN0FtPYW784yLI0A%3A1678790200781&ei=OE4QZIqfL5Xi2roPvLOIgAI&oq=execution+sandbox+&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQARgAMgQIIxAnMgQIIxAnMgQIIxAnMgQIABAeMgYIABAIEB4yBggAEAgQHjIICAAQCBAeEA86BAgAEEdKBAhBGABQyQRYyQRg4xtoAHACeACAAUqIAUqSAQExmAEAoAEByAEKwAEB&sclient=gws-wiz-serp

https://www.apriorit.com/dev-blog/367-anti-reverse-engineering-protection-techniques-to-use-before-releasing-software
https://www.codeproject.com/Articles/1090943/Anti-Debug-Protection-Techniques-Implementation-an
https://anti-debug.checkpoint.com/techniques/debug-flags.html
https://blog.csdn.net/fengyunzhongwei/article/details/39160565
https://www.scribd.com/document/413964852/Anti-Debugging-Protection-Techniques-With-Examples-pdf

https://www.google.com/search?q=execution+sandbox+debug+tools+ret+jmp+ntglobalflag&client=firefox-b-d&sxsrf=AJOqlzXnPaMUdTk-A-vN0FtPYW784yLI0A%3A1678790200781&ei=OE4QZIqfL5Xi2roPvLOIgAI&oq=execution+sandbox+&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQARgAMgQIIxAnMgQIIxAnMgQIIxAnMgQIABAeMgYIABAIEB4yBggAEAgQHjIICAAQCBAeEA86BAgAEEdKBAhBGABQyQRYyQRg4xtoAHACeACAAUqIAUqSAQExmAEAoAEByAEKwAEB&sclient=gws-wiz-serp

https://www.google.com/search?q=execution+sandbox+debug+tools+ret+jmp+ntglobalflag+apriorit+&client=firefox-b-d&sxsrf=AJOqlzUyvWu-d6_fkR8cjH7fpbD8LJorGA%3A1678790228836&ei=VE4QZNfQMp2n2roP0fi_4AU&ved=0ahUKEwjXyvf5nNv9AhWdk1YBHVH8D1wQ4dUDCA4&oq=execution+sandbox+debug+tools+ret+jmp+ntglobalflag+apriorit+&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQDDoKCAAQRxDWBBCwAzoICAAQgAQQywE6BAgAEB46BggAEB4QD0oECEEYAFDyAViiHWD8ImgBcAF4AIABiAGIAe8CkgEDMi4ymAEAoAEBoAECyAEKwAEB&sclient=gws-wiz-serp

https://www.google.com/search?client=firefox-b-d&q=executtion+sandbox

 

 

sDebuggerPresent
PEB (Process Environment Block)
How to neutralize the IsDebuggerPresent check
TLS Callback
NtGlobalFlag
How to neutralize the NtGlobalFlag check
NtGlobalFlag and IMAGE_LOAD_CONFIG_DIRECTORY
Heap Flags and ForceFlags
How to neutralize the Heap Flags and ForceFlags checks
Trap Flag Check
How to neutralize the TF check
CheckRemoteDebuggerPresent and NtQueryInformationProcess
How to neutralize CheckRemoteDebuggerPresent and NtQueryInformationProcess
Other techniques of anti-debug protection based on NtQueryInformationProcess
How to neutralize the NtQueryInformationProcess checks
Breakpoints: Software and Hardware ones
SEH (Structured Exception Handling)
How to neutralize SEH checks
VEH (Vectored Exception Handler)
How to neutralize hardware breakpoint check and VEH
NtSetInformationThread – hiding thread from debugger
How to neutralize thread hiding from debugger
NtCreateThreadEx
How to neutralize NtCreateThreadEx
Handle Tracing
Stack Segment Manipulation 

HyperDbg: Reinventing Hardware-Assisted Debugging
misc0110.net
https://misc0110.net › files › hyperdbg_ccs22
  We describe how the pro- posed debugger enables transparent debugging of I/O devices, analy- ses performance of software, and provides means for code coverage.
 

Windows Anti-Debug Reference

http://www.symantec.com/connect/articles/windows-anti-debug-reference


2022年10月8日 星期六

Pascal Compiler supports ARM cross cpu

https://wiki.freepascal.org/TARGET_Embedded
https://www.mikroe.com/mikropascal-arm
https://www.mme-berlin.de/arm9-modul/index.htm
https://ultibo.org/
https://pilotlogic.com/sitejoom/index.php/forum/installation-setup/2229-location-of-lazarus-ide-configuration-files-in-ct.html#2371
Location of Lazarus IDE configuration files in CT
https://www.phoronix.com/news/Free-Pascal-FPC-3.2-Compiler
https://help.rc.ufl.edu/doc/Pascal 

https://wiki.freepascal.org/Cross_compiling

https://wiki.freepascal.org/ARM_compiler_options


8051 IAR Keil Mikro SDCC

2022年6月21日 星期二

Pascal XE Pascal XE is an IDE for Pascal programming, it is user friendly and designed specially for beginners in programming. Pascal XE includes 3 free compilers: - Virtual Pascal Compiler 2.1.279 (default) - Free Pascal Compiler 3.0.4 - GNU Pascal Compiler 20070904

 https://sourceforge.net/projects/pascalxe/

Quartex Pascal – Research and development for the next generation object pascal

 Quartex Pascal – Research and development for the next generation object pascal

Welcome to the official website for Quartex Pascal, an exciting Object Pascal development toolchain for writing modern, HTML5 and node.js powered applications.

Quartex Pascal (short: QTX) is an object pascal IDE, compiler, run-time library and development system. Unlike traditional, native development systems, such as C/C++, Delphi or Freepascal, QTX generates high performance JavaScript – allowing developers to tap into web technology and enjoy the full might of modern mobile, desktop and server development.

 https://jonlennartaasenden.wordpress.com/2021/10/05/quartex-pascal-nearing-completion/

https://quartexpascal.wordpress.com/ 

https://jonlennartaasenden.wordpress.com/category/quartex-pascal/

2022年4月14日 星期四

compilers.net > directory > free > compilers > pascal

 http://www.compilers.net/Dir/Free/Compilers/Pascal.htm

 

....
Symantec Think Pascal Compiler
Think Pascal (FTP)
TinyPascal
TMT Pascal
Turbo51
Virtual Pascal Compiler
Vector Pascal

 

2022年4月13日 星期三

8051 IAR Keil Mikro SDCC

 8051  IAR Keil Mikro SDCC

 https://turbo51.com/

 http://www.openrtos.net/RTOS_ports.html

 https://www.intorobotics.com/8051-microcontroller-programming-tutorials-simulators-compilers-and-programmers/

 

8051 assembly machine code  The following table lists the 8051 instructions by HEX code. 


translate pascal 8051 Assembler Translation
http://www.8051projects.info/resources/8051-assemblers-and-ides.22/
https://stackoverflow.com/questions/15204459/is-there-any-8051-assembly-language-to-c-code-converter
https://www.microapl.com/asm2c/sample8051.html

Relogix™ Sample Translation (8051)


This sample translation uses the source code of a software-implemented I2C driver for the 80C51 based microcontroller.


http://bit.kuas.edu.tw/~8051/

8051 Development Tools

2021年12月20日 星期一

use external fonts font directly from resources in Delphi Resource Compiler brcc32 MSBuild

 use external fonts font directly from resources in Delphi
AddFontMemResourceEx
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontmemresourceex?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontresourcea?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontresourceexa?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontmemresourceex?redirectedfrom=MSDN
https://sourceforge.net/projects/jvcl/
 JVCL's TjvDataEmbedded AddFontResource
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Step_3_-_Add_Style-Resources_as_RCDATA_(Delphi)
Step 3 - Add Style-Resources as RCDATA (Delphi)


procedure TForm1.FormCreate(Sender: TObject) ;
begin
  AddFontResource('c:\FONTS\MyFont.TTF') ;
  SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) ;
end;

//Before application terminates we must remove our font:
procedure TForm1.FormDestroy(Sender: TObject) ;
begin
  RemoveFontResource('C:\FONTS\MyFont.TTF') ;
  SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) ;
end;
https://stackoverflow.com/questions/2984474/embedding-a-font-in-delphi
https://stackoverflow.com/questions/36224624/loading-font-from-resource-file

TResourceStream AddFontResource WM_FONTCHANGE message
   ResStream : tResourceStream;
   FontsCount : integer;
   hFont : tHandle;
 
   ResStream := tResourceStream.Create(hInstance, ResourceName, RT_RCDATA);
   hFont := AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount);
   result := (hFont <> 0);
   ResStream.Free();
 

function LoadResourceFontByName( const ResourceName : string; ResType: PChar ) : Boolean;
var
  ResStream : TResourceStream;
  FontsCount : DWORD;
begin
  ResStream := TResourceStream.Create(hInstance, ResourceName, ResType);
  try
    Result := (AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount) <> 0);
  finally
    ResStream.Free;
  end;
end;

function LoadResourceFontByID( ResourceID : Integer; ResType: PChar ) : Boolean;
var
  ResStream : TResourceStream;
  FontsCount : DWORD;
begin
  ResStream := TResourceStream.CreateFromID(hInstance, ResourceID, ResType);
  try
    Result := (AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount) <> 0);
  finally
    ResStream.Free;
  end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  if LoadResourceFontByName('MyFont1', RT_RCDATA) then
    Label1.Font.Name := 'My Font Name 1';

  if LoadResourceFontByID(2, RT_FONT) then
    Label2.Font.Name := 'My Font Name 2';
end;

LoadResourceFontByName
delphi add font resource file LoadResourceFontByName
[Solved] Embedding a font in delphi - Code Redirect
https://www.sql.ru/forum/1254355/delphi-zagruzit-shrift-iz-resursov

{$R MyNewFont.RES}
...
procedure TForm1.FormCreate(Sender: TObject);
var
  MyResStream: TResourceStream;
begin
  MyResStream:=TResourceStream.Create(hInstance, 'MYFONT', RT_RCDATA);
  MyResStream.SavetoFile('Gen4.ttf');
  AddFontResource(PChar('Gen4.ttf'));
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);
  Label1.Font.Charset:=SYMBOL_CHARSET;
  Label1.Font.Size:=24;
  Label1.Font.Name:='Gen4';
end;

MSBuild.exe C:/Project1.dproj /t:Build /p:configutation=Debug /p:platform=Win32

https://docwiki.embarcadero.com/RADStudio/Sydney/en/BRCC32.EXE,_the_Resource_Compiler
Resource Compiler, brcc32.exe

https://delphi.cjcsoft.net/viewthread.php?tid=47317

{$R MyFont.res}
  Res : TResourceStream;
 
  Res := TResourceStream.Create(hInstance, 'MY_FONT', Pchar('ANYOL1'));
  Res.SavetoFile('Bauhs93.ttf');
  Res.Free;
  AddFontResource(PChar('Bauhs93.ttf'));
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);
 
  RemoveFontResource(PChar("Bauhs93.ttf"))
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);














2021年12月17日 星期五

C sample code for PIC micros and Hi-Tech C usb rs232

 C sample code for PIC micros and Hi-Tech C
https://www.microchipc.com/sourcecode/


C sample code for PIC micros and Hi-Tech C

Sample projects for the Microchip PIC micro series of microcontrollers, including the PIC12x, PIC16x, PIC18x, PIC24x, and dsPICx microcontrollers.

Code is targeted at the Hi-Tech C compiler, from www.htsoft.com, the C18 or C30 compiler from www.microchip.com, or CCS C.

We want to publish your embedded source code for the benefit on the PIC community. Send it to support@microchipc.comand I will post it on the site, together with recognition of your name and website.

    CRC.
    USB serial port for PIC18F4550.
    MMC card.
    Delay routines in C for PIC16Fx core.
    Delay routines in C for PIC18Fx core.
    UART for PIC16F87x and PIC18Fx.
    Bootloader - PIC16F876.
    Bootloader - PIC18F1320.
    Bootloader - PIC18Fx52.
    Bootloader - PIC17C4x.
    Bootloader - dsPIC (all variants).
    EEPROM.
    A/D.
    D/A.
    SPI.
    LCD.
    PIC12C509 logic replacement nitrogen filler.
    I2C.
    Multitasking and RTOS.
    17C4x bootloader.
    16F84 based pulse monitor.
    TRIAC controller
    Dallas DS1821 thermometer.
    Decimal routines.
    PIC16F84 pulse mon date/time RS232 serial port
    PIC16F84 TRIAC / IGBT 50/60Hz control.

    

    Phase Controller for 2kW heater.
    Dallas DS1821 three-pin digital thermostat.
    Gym Timer.
    LCD and keypad project.
    Heater Project - involves 1-wire routines, serial routines, a P.I.D (Proportional, Integral, Derivative) calculation, ADC, and a interrupt driven burst mode heater control.
    dsPIC30Fx "Hello World" example.
    dsPIC30Fx "RC Pulse" example.
    C driver code project for Samsung KS0713 and PIC micros.
    PIC18LF4550 with LCD and temperature sensor.
    MiniBasic example peripheral code in C, for PIC18, PIC24, PIC32. Examine the C source code to work out how to use any peripheral on a PIC18, PIC24 or PIC32. Very useful.
    Interrupt driven serial with circular FIFO for PIC16x micro.
    Tiny threads example - 1 byte per thread.
    The Dot Factory: An LCD Font and Image Generator
    Embedded PIC Programmer
    Portable LCD driver.
    SimpleRTOS. A tiny, portable multitasking OS.
    Improve your programming with the UVa tutorial.
    ... and much, much more.

2021年12月16日 星期四

decompiles dot net Reverse Engineering

 https://softwarebrother.com/entry/ilspy+dnspy.html

 ilspy dnspy

本文主要介紹ILSpy、dnSpy、JetBrains和Telerik JustDecompile以及可直接修改程序集的reflexil插件和脫殼反混淆的de4Dot插件。 文本的示例程序:.,dnSpy is a debugger and . ... #1392 'mono-2.0-bdwgc.dll' patched for DnSpy - Unity v. 2019.2.4 Opened by carlosnizer 3 months ago #936 Update ILSpy ... , 下載地址:https://github.com/0xd4d/dnSpy/releases無需安裝,和ILSPY同門,感覺比ILSPY還強大. 直接把dll拖拽到程序集資源管理器裏面就可以啦., 三、dnSpy (免费). 这款工具跟ILSpy非常相似,它还支持VB,IL的反编译,页面看起来很舒服, 反编译的质量也很高,代码识别也很高,唯一给我感觉 ...,Memory profiler: Visual Studio embedded profiler, dotMemory, Intel VTune Amplifier, VMMap, Mono Console Tools • C#/VB decompiler: ILSpy, dnSpy,

 

Reverse Engineering - Dotfuscator Professional 6.4
https://www.preemptive.com › userguide
 
NET assemblies into MSIL assembly language. Using ILdasm. Type ildasm in the Developer Command Prompt for VS20xx shortcut in your Start Menu (or Visual Studio ...

2015年12月12日 星期六

跨平台 pascal 免費 編譯 開發 環境 (window Qt X 基礎) codetyphon lazarus delphi similar delphi development environment

http://www.pilotlogic.com/sitejoom/index.php
(window Qt X 基礎) codetyphon lazarus delphi similar delphi development environment

CodeTyphon ver 5.50
At 18-Sep-2015 we released a new version 5.50 of our 
Free, Pascal Visual Programming Studio

CodeTyphon.
for Cross-Platform Native Development, with Multi-OS, Multi-CPU and Cross-Build abilities.

For all changes please read Changes log file


http://www.pascalscada.comAbout PascalSCADA

The PascalSCADA is: a framework for Delphi/Lazarus to quick development of HMI/SCADA applications.

Platforms supported by PascalSCADA:

Windows, 32 bits and 64 bits
Linux, 32 bits and 64 bits
FreeBSD, 32 bits and 64 bits (64 bits needs FPC 2.4.4+)
Windows CE (needs FPC 2.6.0+)
What you can do with PascalSCADA? Exchange data with PLC's, create interfaces, store values and alarms of process and control users of the application.


Lazarus
Open Source |  | Mac, Windows, Linux, Windows Mobile, BSD, Self-Hosted, OpenSolaris
Lazarus is a cross-platform IDE for the Free Pascal compiler. It tries to offer a Delphi-like programming...
  Development     programming, ide, rapid-application-development, delphi, pascal

KDevelop
Open Source |  | Mac, Linux, BSD, KDE
KDevelop is a free, open source IDE (Integrated Development Environment) for Linux, Solaris, FreeBSD, Max OS...
  Development     development, developer-tools, programming, ide, python
  
Delphi
Commercial |  | Windows
Embarcadero Delphi, formerly CodeGear Delphi and Borland Delphi, is a software development environment for...
  Development     programming, ide, android-development, ios-development, rapid-application-development
  
Free Pascal
Open Source |  | Mac, Windows, Linux, Windows Mobile, BSD, Haiku
Free Pascal (aka FPK Pascal) is a 32 and 64 bit professional Pascal compiler. It is available for different...
  Development     development, compilers, pascal, pascal-compiler
  
CalcTape
Free |  | Windows
CalcTape is a revolutionary new kind of pocket calculator. With CalcTape, also extensive calculations remain...
  Development, Education & Reference     php-development, mysql, calculator, software-development, perl
  
CodeTyphon
Free |  | Windows, Linux
CodeTyphon is the free "Pascal Visual Programming Studio", for Cross-Platform Native Development...
  Development     programming, ide, rapid-application-development, pascal, lazarus

SQL Server Data Access Components
Free with limited functionality |  | Mac, Windows, Linux, Android, iPhone
SQL Server Data Access Components (SDAC) is a library of components that provides access to Microsoft SQL...
  Development     database, sql, sql-server, delphi, component
  
Turbo Pascal
Free for personal use |  | Windows
Turbo Pascal is a software development system that includes a compiler and an integrated development...
  Development     ide, compilers, debugger, pascal

MSEide + MSEgui
Open Source |  | Windows, Linux
MSEide+MSEgui is new options in the programming world. MSEide+MSEgui is a package  IDE (Integrated...
  Development     ide, rapid-application-development, pascal, free-pascal

MIDletPascal
Open Source |  | Windows
MIDletPascal is an Pascal compiler and IDE specifically designed to create software for mobiles. It generates...
  Development     programming, java, pascal, j2me

codelot
Free |  | Web / Cloud
Codelot is a web service where you can store your own codes or find codes you need. It's intended to be a...
  Development     database, php-development, javascript-development, html, css

Dev-Pascal
Open Source |  | Windows
[DISCONTINUED] Dev-Pascal is a full-featured integrated development environment (IDE), which is able to...
  Development     discontinued, ide, compilers, debugger, pascal


Oxygene (formerly known as Chrome) is a programming language developed by RemObjects Software for Microsoft's Common Language Infrastructure and the Java Platform. Oxygene is Object Pascal-based, but also has influences from C#, Eiffel, Java, F# and other languages.

Compiler Design - Syntax Analysis 編譯器 設計 語法 分析 演算法

http://www.tutorialspoint.com/compiler_design/compiler_design_syntax_analysis.htm
Compiler Design - Syntax Analysis
編譯器 設計 語法 分析演算法
http://www.tutorialspoint.com/compiler_design/index.htm
Compiler Design Tutorial
Compiler Design - Home
Compiler Design - Overview
Compiler Design - Architecture
Compiler Design - Phases of Compiler
Compiler Design - Lexical Analysis
Compiler - Regular Expressions
Compiler Design - Finite Automata
Compiler Design - Syntax Analysis
Compiler Design - Types of Parsing
Compiler Design - Top-Down Parser
Compiler Design - Bottom-Up Parser
Compiler Design - Error Recovery
Compiler Design - Semantic Analysis
Compiler - Run-time Environment
Compiler Design - Symbol Table
Compiler - Intermediate Code
Compiler Design - Code Generation
Compiler Design - Code Optimization
Compiler Design Useful Resources
Compiler Design - Quick Guide
Compiler Design - Useful Resources
Compiler Design - Discussion
Selected Reading
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary

Who is Who


  • Compiler Design Tutorial
 PDF Version  Quick Guide  Resources  Job Search  Discussion
A compiler translates the code written in one language to some other language without changing the meaning of the program. It is also expected that a compiler should make the target code efficient and optimized in terms of time and space.

Compiler design principles provide an in-depth view of translation and optimization process. Compiler design covers basic translation mechanism and error detection & recovery. It includes lexical, syntax, lexical syntax  and semantic analysis as front end, and code generation and optimization as back-end. exposure to Assembly Programming x86 process code generation and optimization as back-end.
In Fix Post fix Postfix Reverse Polish notation


Audience

This tutorial is designed for students interested in learning the basic principles of compilers.Enthusiastic readers who would like to know more about compilers and those who wish to design a compiler themselves may start from here.

Prerequisites
This tutorial requires no prior knowledge of compiler design but requires basic understanding of at least one programming language such as C, Java etc.It would be an additional advantage if you have had prior exposure to Assembly Programming.

...

  • Syntax analysis or parsing is the second phase of a compiler. In this chapter, we shall learn the basic concepts used in the construction of a parser.
We have seen that a lexical analyzer can identify tokens with the help of regular expressions and pattern rules. But a lexical analyzer cannot check the syntax of a given sentence due to the limitations of the regular expressions. Regular expressions cannot check balancing tokens, such as parenthesis. Therefore, this phase uses context-free grammar (CFG), which is recognized by push-down automata.



2015年12月7日 星期一

7 open source Java anti compilation tools 7 款开源 Java 反编译工具 7 款開源 Java 反編譯工具

7 open source Java anti compilation tools 7 款開源 Java 反編譯工具







Automating Removal of Java Obfuscation



  • 80x86 Win32 Disassembler DLL 1.2
  • Hopper Disassembler 1.0.1
  • Udis86 Disassembler for x86 and x86-64 86.1.7
  • APNG Disassembler 2.4
  • PE Explorer 1.99 R3
  • emu8086 2.10
  • PEBrowse Professional Interactive 7.32
  • Visual DuxDebugger 2.8
  • PEBrowseDbg64 Interactive 2.9
  • deadener 1.17
  • PEBrowse64 Professional 2.1
  • IDA PRO for Linux 6.0
  • IDA PRO for Mac 6.0
  • DJ Java Decompiler 3.9.9.91
  • Easy JAVA to Source Converter 1.6

http://www.program-transformation.org/Transform/WebHome
這裡很多資料,以下簡
Program transformation techniques are used in a many areas of software engineering ranging from program synthesis, via program optimization and program refactoring, to reverse engineering and documentation generation. Many theories, tools and applications have been developed over the last 30 years. Often the results of these efforts are used only in the community that developed them.
Program-transformation.org is dedicated to collecting, organizing and disseminating information about all aspects of program transformation in order to share results across communities. Such an effort cannot possibly be achieved by a static web site. Therefore, this site is based on TWiki, a system for collaborative web development. This means that you cannot only read information about program transformation, but also contribute to this site by editing pages and by adding new pages. OneMinuteWiki explains how wiki works. -- EelcoVisser & ArieVanDeursen

http://www.program-transformation.org/Transform/DecompilationResources

Decompilation Resources
Program-Transformation.Org: The Program Transformation Wiki
This page contains links to projects peripherally related to decompilation.
  • Binary files
  • The format of Executable files
  • Tool generator tools
  • Resource extractors
  • Fenris tools
  • Binary file decompilation
  • Java and .NET related
  • Delphi related
  • Conferences and workshops
  • Decompilation-related Theses
  • Decompilation Papers
  • Decompilation Books
  • Online Collaborative Books
  • Miscellaneous



The format of Executable files
  • Win32PE (An In-Depth Look into the Win32 Portable Executable File Format)
  • Pc Exe Format from The Interrupt List by Ralph Brown
  • Ne Format (the NE (New Executable) format (16 bit Windows))
  • ExeFmt A description of the New Executable (NE) 16-bit Windows format.
  • Pe Dump (PE dump program)
  • VXPE (VX Portable Executable Viewer)
  • PE Explorer (Commercial tool)
  • Manuals on several executable file formats (OMF, PE, ELF, Dwarf, etc)


Decompilation-related Theses
  • Reverse Compilation Techniques, C. Cifuentes, Queensland University of Technology PhD thesis, 1994.
  • Static Single Assignment for Decompilation, M. Van Emmerik, University of Queensland PhD thesis, 2007. Also available as gzipped postscript.
  • WYSINXYX: What You See is Not What You Execute, Gogul Balakrishnan, University of Wisconsin-Maddison PhD thesis, 2007. Uses IDA Pro and custom code to analyse x86 binaries for security problems.
  • Designing an Object-Oriented Decompiler, D. Eriksson, Blekinge Institute of Technology Masters thesis, 2002. See also the Desquirr IDA Pro plugin.
  • Proving Program Refinements and Transformations, M. Ward, Oxford University PhD thesis, 1989. This is the basis for Ward's future work, which is able to transform assembly language to C on an industrial scale.


Miscellaneous
  • Hex-rays decompiler plugin. IDA Pro has a commercial decompiler plugin now.
  • Hexblog, by Ilfak Guilfanov (author of IDA Pro), has a decompilation category. Other categories, such as the IDA Pro category, are often of interest.
  • QuantumG's blog was mostly about decompilation, especially the earlier entries. Some very good information.
  • Windows Source Project, maintained by Clive Turvey.
  • List of Debuggers and Disassemblers (from http://www.tech-faq.com). Also their "What is a Decompiler?" page.
  • Free Disassemblers, Decompilers, Binary / Hex Editors and Viewers (from http://www.thefreecountry.com).
  • x86 Assembly Language FAQ
  • The Redo Project Archive.
  • You can use the dllman32 Windows Dynamic Link Library Investigator for finding dependencies among DLL's.
  • The Softpanorama page on Decompilation and Decompilers. Softpanorama describes itself as "resources for the independent study in computer science and programming".
  • The Code Breakers Journal.
  • Bob Stout posted a short history of PC C compilers.
  • http://www.codesites.com (development related links)
  • Fravia's page of Reverse engineering has a cracker's viewpoint, including a page on the legality of reverse engineering. The URL keeps changing; just search for it.
  • ProgramObfuscation could be considered a defence to decompilation.
  • DecompilationUrls (ordered alphabetically by URL).
  • The static recompilers Yahoo group have the goal of statically translating binary code (mostly old arcade games) from one architecture to another. There is a tool called Orion that emits a sort of unrolled interpreter of input machine instructions into C code. It's basically static binary translation, so the output is hard to read, and the original machine's instructions are very visible. Works on code from Z80, 6502, and a few other architectures.
  • Unconfirmed: John Banning and Hans Pufal's NLZ program, said to be part of Hunter Systems's XDOS suite. It was reportedly able to decompile PC applications and help port them to Unix workstations. Original contact: Hunter Systems, since acquired by Miltiport of Mountain View, CA, USA.

Search
  • Search freshmeat for "decompiler" or "decompile".
  • Search SourceForge for "decompiler" or "decompile".
  • Search Google Scholar (in Beta at the time of writing) for "decompiler" or "decompilation".
  • Search CiteSeer.IST for "decompiler" or "decompilation".



Java Decompilers
Program-Transformation.Org: The Program Transformation Wiki

Decompiler front ends
Some decompilers are just GUI front-ends for a console (text) based decompiler. Some are listed in this table.
Front end (GUI) decompiler Back end decompiler (engine)
  • Cavaj Jad
  • Decafe Pro Jad
  • DJ Java Decompiler Jad
  • Frontend Plus Jad
  • JadClipse (Eclipse plugin) Jad
  • BTJ (Back To Java) JODE
  • jEdit's JavaInsight plugin JODE


如何得知 exe dll 執行檔 呼叫了 哪些 dll 動態連結檔

  • Deployment in Visual C++
  • Deployment Concepts
  • Understanding the Dependencies of a Visual C++ Application
  • Determining Which DLLs to Redistribute
  • Choosing a Deployment Method
  • Redistributing Visual C++ Files
  • Deployment Examples
  • Redistributing Web Client Applications
  • ClickOnce Deployment for Visual C++ Applications
  • Running a C++ /clr Application on a Previous Runtime Version

  • https://msdn.microsoft.com/en-us/library/ms235265.aspx
  • Understanding the Dependencies of a Visual C++ Application

  • To determine which Visual C++ libraries an application depends on, you can view the project properties. (In Solution Explorer, right-click on the project and choose Properties to open the Property Pages dialog box.) You can also use the Dependency Walker (depends.exe), which gives a more comprehensive picture of the dependencies.
  • In the Property Pages dialog box, you can examine various pages under Configuration Properties to understand the dependencies. For example, if your project uses the MFC libraries and you choose Use of MFC, Use MFC in a Shared DLL on the Configuration Properties, General page, your application at run time depends on MFC DLLs such as mfc.dll. If your application doesn't use MFC, it might depend on the CRT library if you choose a Runtime Library value of Multi-threaded Debug DLL (/MDd) or Multi-threaded DLL (/MD) on the Configuration Properties, C/C++, Code Generation page.
  • A more comprehensive way to determine which DLLs your application depends on is to use Dependency Walker (depends.exe) to open the application. You can download the tool from the Dependency Walker web site.
  • By using depends.exe, you can examine a list of DLLs that are linked to the application at load time, and a list of its delay-loaded DLLs. If you want to get a complete list of DLLs that are dynamically loaded at run time, you can use the profiling feature in depends.exe to test the application until you're sure that all code paths have been exercised. When you end the profiling session, depends.exe shows which DLLs were dynamically loaded during run time.
  • When you use depends.exe, be aware that a DLL might have a dependency on another DLL or on a specific version of a DLL. You can use depends.exe on either the development computer or on a target computer. On the development computer, depends.exe reports the DLLs that are required to support an application. If you have trouble getting an application to run on a target computer, you can copy depends.exe to it and then open the application in the tool so that you can determine whether any required DLLs are missing or incorrect.
  • When you know which DLLs your application depends on, you can determine the ones that you have to redistribute with your application when you deploy it to another computer. In most cases, you don't have to redistribute system DLLs, but you may have to redistribute DLLs for Visual C++ libraries. For more information, see Determining Which DLLs to Redistribute.
  • See Also
  • Deploying Native Desktop Applications (Visual C++)

  • c++ runtime library explorer load dll list Dependency 


  •  Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.





decompiler Disassembler Debugger exe dll ocx shell32 exe dll ocx sys scr

  • Tools to work cooperatively on the same binary

http://reverseengineering.stackexchange.com/questions/1347/tools-to-work-cooperatively-on-the-same-binary

  • BMP file format 


The BMP file format, also known as bitmap image file or device independent bitmap (DIB) file format or simply a bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows[2] and OS/2[3] operating systems.
https://en.wikipedia.org/wiki/BMP_file_format

binary file format structures from flat binary header bitmap