Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile
README.md
compiler_flag_examples.h
float_promotion.c
main.c
newlib_stubs.c
short_enum.c
simple_for_loop.c
simple_math.c
stack_usage.c
tentative_global.c

README.md

Introduction

A small example application used to demonstrate the impact of various compilation flags

Usage

Arguments:

  • EXTRA_CFLAGS="compilation flags to build with"
  • EXTRA_LDFLAGS="ld flags to build with"
  • USE_CLANG=1 will compile with clang instead of gcc

USAGE:

EXTRA_CFLAGS="-g -Wformat=2" make
main.c: In function 'print_user_provided_buffer':
main.c:82:3: warning: format not a string literal and no format arguments [-Wformat-security]
   printf(buf);
You can’t perform that action at this time.