Tag Archives: C

Huffman encoder in C

During school I made a Huffman encoder and decoder that has come back and haunted me on several notable occasions – namely, those interviews. Microsoft was especially excited to test me knowledge on how well I could improve this program. My interviewer was able to improve the running time so that the decoding was done [...]
Posted in Programming | Tagged | Leave a comment

Template makefile.

I did this so many times during school that I just needed a quick Makefile, here it is. If you have any suggestions please feel free to make them! # Comments # @author gnucom.cc CC=gcc CPP=g++ SUS3=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 HARDEN=-D_FORTIFY_SOURCE CFLAGS=-Wall -Werror -g -std=gnu99 -pedantic $(SUS3) $(HARDEN) LDFLAGS= ALL=myprogram all: $(ALL) myprogram: myobject.o helpers.o $(CC) [...]
Posted in Programming, Ubuntu Linux | Also tagged | Leave a comment