Coder Social home page Coder Social logo

icyphox / asdf Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 9.0 2.53 MB

:shit: scrapped ideas and garbage code

Python 15.02% Ruby 10.80% Shell 3.27% C 5.70% Rust 0.23% Makefile 0.14% Nim 5.93% TypeScript 0.06% Perl 0.71% C++ 1.33% HTML 2.21% Vala 0.30% Go 0.03% JavaScript 53.10% Vue 0.78% Lua 0.07% Objective-C 0.30%
nonsense garbage trash crap

asdf's People

Contributors

dependabot[bot] avatar icyphox avatar nerdypepper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asdf's Issues

printf replaced by puts

Nice article, thanks for sharing it. ๐Ÿ˜‰

By the way, in the article you say:

Iโ€™m not sure why it uses puts here? I might be missing something; perhaps printf calls puts.

That's actually a gcc "optimization": as your code does not use any formatting feature from printf function (%d, %s, etc with runtime-dependant values) it can be replaced by the simpler puts, which is cheaper call.

You can disable that using the gcc -fno-builtin-printf option:

$ gcc -o chall.elf chall.c
$ nm chall.elf | grep -E puts
                 U puts@@GLIBC_2.2.5

$ gcc -fno-builtin-printf -o chall.elf chall.c
$ nm chall.elf | grep puts
$

Sorry about opening an issue here. There's no issue with your code/article but I found it the easiest way to contact you regarding this.

Ciao!

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.