Go Back   The PokéCommunity Forums > Members List

Notices
For all updates, view the main page.



Shiny Quagsire's Profile Picture

Shiny Quagsire Shiny Quagsire is offline

I like .short's because they're comfy and easy to wear.

Visitor Messages

Showing Visitor Messages 11 to 20 of 400
  1. Kenny1
    October 30th, 2014 07:27 PM
    Kenny1
    I'm actually using Hyper-V to run Linux, it partitioned a section of my drive for linux, only problem is that I can't connect to the internet, so I might just double boot my PC.
  2. Kenny1
    October 30th, 2014 09:50 AM
    Kenny1
    I decided to install Linux on my PC, because it seems Windows isnt the best for everything, do you think this should help me?
  3. Kenny1
    October 29th, 2014 09:08 AM
    Kenny1
    I don't know where, anyway, I think it would be better if I just left it, it's CLEARLY not working.
  4. Kenny1
    October 28th, 2014 08:10 AM
    Kenny1
    I cant find it, I don't know how it works

    Working makefile:
    Spoiler:
    Quote:
    #
    # Template tonc makefile
    #
    # Yoinked mostly from DKP's template
    #

    # === SETUP ===========================================================

    # --- No implicit rules ---
    .SUFFIXES:

    # --- Tonc paths ---
    # If not defined as environment variable, assumed to be 2 dirs up
    export TONCCODE ?= $(CURDIR)/../..

    include $(TONCCODE)/tonc_rules

    # --- Main path ---

    export PATH := $(DEVKITARM)/bin:$(PATH)


    # === PROJECT DETAILS =================================================
    # PROJ : Base project name
    # TITLE : Title for ROM header (12 characters)
    # LIBS : Libraries to use, formatted as list for linker flags
    # BUILD : Directory for build process temporaries. Should NOT be empty!
    # SRCDIRS : List of source file directories
    # DATADIRS : List of data file directories
    # INCDIRS : List of header file directories
    # LIBDIRS : List of library directories
    # General note: use `.' for the current dir, don't leave the lists empty.

    export PROJ ?= $(notdir $(CURDIR))
    TITLE := $(PROJ)
    GFXLIBS :=
    MUSIC := audio

    LIBS := -ltonc -lmm

    BUILD := build
    SRCDIRS := source
    DATADIRS := data
    INCDIRS := include
    LIBDIRS := $(TONCCODE)/tonclib

    # --- switches ---

    bMB := 0 # Multiboot build
    bTEMPS := 0 # Save gcc temporaries (.i and .s files)
    bDEBUG := 0 # Generate debug info


    # === BUILD FLAGS =====================================================
    # This is probably where you can stop editing
    # NOTE: I've noticed that -fgcse and -ftree-loop-optimize sometimes muck
    # up things (gcse seems fond of building masks inside a loop instead of
    # outside them for example). Removing them sometimes helps

    # --- Architecture ---

    ARCH := -mthumb-interwork -mthumb
    RARCH := -mthumb-interwork -mthumb
    IARCH := -mthumb-interwork -marm -mlong-calls

    # --- Main flags ---

    ifeq ($(strip $(bDEBUG)), 2)

    CFLAGS := -mcpu=arm7tdmi -mtune=arm7tdmi -O3
    CFLAGS += -Wall
    CFLAGS += $(INCLUDE)
    CFLAGS +=

    CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions

    ASFLAGS := $(ARCH) $(INCLUDE)
    LDFLAGS := $(ARCH) -Wl,-Map,$(PROJ).map

    else ifeq ($(strip $(bDEBUG)), 1)

    CFLAGS := -mcpu=arm7tdmi -mtune=arm7tdmi -O3
    CFLAGS += -Wall
    CFLAGS += $(INCLUDE)
    CFLAGS +=

    CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions

    ASFLAGS := $(ARCH) $(INCLUDE)
    LDFLAGS := $(ARCH) -Wl,-Map,$(PROJ).map

    else

    CFLAGS := -mcpu=arm7tdmi -mtune=arm7tdmi -O2
    CFLAGS += -Wall
    CFLAGS += $(INCLUDE)
    CFLAGS += -ffast-math -fno-strict-aliasing

    CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions

    ASFLAGS := $(ARCH) $(INCLUDE)
    LDFLAGS := $(ARCH) -Wl,-Map,$(PROJ).map
    endif



    # --- switched additions ----------------------------------------------

    # --- Multiboot ? ---
    ifeq ($(strip $(bMB)), 1)
    TARGET := $(PROJ).mb
    else


    ifeq ($(strip $(bDEBUG)), 2)
    TARGET := $(PROJ)_debug_VBA
    else ifeq ($(strip $(bDEBUG)), 1)
    TARGET := $(PROJ)_debug_Eclipse
    else
    TARGET := $(PROJ)
    endif

    endif

    # --- Save temporary files ? ---
    ifeq ($(strip $(bTEMPS)), 1)
    CFLAGS += -save-temps
    CXXFLAGS += -save-temps
    endif

    # --- Debug info ? ---

    ifeq ($(strip $(bDEBUG)), 2)
    CFLAGS += -DNDEBUG
    CXXFLAGS += -DNDEBUG
    ASFLAGS += -DNDEBUG
    else ifeq ($(strip $(bDEBUG)), 1)
    CFLAGS += -DDEBUG -g
    CXXFLAGS += -DDEBUG -g
    ASFLAGS += -DDEBUG -g
    LDFLAGS += -g
    else
    CFLAGS += -DNDEBUG
    CXXFLAGS += -DNDEBUG
    ASFLAGS += -DNDEBUG
    endif


    # === BUILD PROC ======================================================

    ifneq ($(BUILD),$(notdir $(CURDIR)))

    # Still in main dir:
    # * Define/export some extra variables
    # * Invoke this file again from the build dir
    # PONDER: what happens if BUILD == "" ?

    export OUTPUT := $(CURDIR)/$(TARGET)
    export VPATH := \
    $(foreach dir, $(SRCDIRS) , $(CURDIR)/$(dir)) \
    $(foreach dir, $(DATADIRS), $(CURDIR)/$(dir))

    export DEPSDIR := $(CURDIR)/$(BUILD)

    # --- List source and data files ---

    CFILES := $(foreach dir, $(SRCDIRS) , $(notdir $(wildcard $(dir)/*.c)))
    CPPFILES := $(foreach dir, $(SRCDIRS) , $(notdir $(wildcard $(dir)/*.cpp)))
    SFILES := $(foreach dir, $(SRCDIRS) , $(notdir $(wildcard $(dir)/*.s)))
    BINFILES := $(foreach dir, $(DATADIRS), $(notdir $(wildcard $(dir)/*.*))) soundbank.bin

    export AUDIOFILES := $(foreach dir,$(notdir $(wildcard $(MUSIC)/*.*)),$(CURDIR)/$(MUSIC)/$(dir))


    # --- Set linker depending on C++ file existence ---
    ifeq ($(strip $(CPPFILES)),)
    export LD := $(CC)
    else
    export LD := $(CXX)
    endif

    # --- Define object file list ---
    export OFILES := $(addsuffix .o, $(BINFILES)) \
    $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) \
    $(SFILES:.s=.o)

    # --- Create include and library search paths ---
    export INCLUDE := $(foreach dir,$(INCDIRS),-I$(CURDIR)/$(dir)) \
    $(foreach dir,$(LIBDIRS),-I$(dir)/include) \
    -I$(CURDIR)/$(BUILD)

    export LIBPATHS := -L$(CURDIR) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)

    # --- More targets ----------------------------------------------------

    .PHONY: $(BUILD) clean

    # --- Create BUILD if necessary, and run this makefile from there ---

    $(BUILD):
    @[ -d $@ ] || mkdir -p $@
    @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
    arm-none-eabi-nm -Sn $(OUTPUT).elf > $(BUILD)/$(TARGET).map

    all : $(BUILD)

    clean:
    @echo clean ...
    @rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba


    else # If we're here, we should be in the BUILD dir



    DEPENDS := $(OFILES:.o=.d)



    # --- Main targets ----

    $(OUTPUT).gba : $(OUTPUT).elf

    $(OUTPUT).elf : $(OFILES)

    #---------------------------------------------------------------------------------
    # The bin2o rule should be copied and modified
    # for each extension used in the data directories
    #---------------------------------------------------------------------------------

    #---------------------------------------------------------------------------------
    # rule to build soundbank from music files
    #---------------------------------------------------------------------------------
    soundbank.bin : $(AUDIOFILES)
    #---------------------------------------------------------------------------------
    @mmutil $^ -osoundbank.bin -hsoundbank.h

    #---------------------------------------------------------------------------------
    # This rule links in binary data with the .bin extension
    #---------------------------------------------------------------------------------
    %.bin.o : %.bin
    #---------------------------------------------------------------------------------
    @echo $(notdir $<)
    @$(bin2o)



    -include $(DEPENDS)


    endif # End BUILD switch

    # EOF
    Alph puzzle makefile:
    Quote:
    default_target: bpre
    .PHONY : default_target

    TARGET = $@

    ifdef offset
    INSERT=$(shell printf "%d" 0x$(offset))
    endif

    PATH := /opt/devkitpro/devkitARM/bin:$(PATH)
    OPTS := -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-profile -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fomit-frame-pointer -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -ftree-tail-merge -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-slp-vectorize -fvect-cost-model -fipa-cp-clone -ffast-math -fno-protect-parens -fstack-arrays -fforward-propagate -finline-functions-called-once -fmerge-all-constants -fmodulo-sched -fmodulo-sched-allow-regmoves -fgcse-sm -fgcse-las -funsafe-loop-optimizations -fconserve-stack

    #
    #Build for Fire Red
    #
    bpre :
    sed 's/^ rom : ORIGIN = 0x08XXXXXX, LENGTH = 32M$$/ rom : ORIGIN = 0x08$(offset), LENGTH = 32M/' linker_base.lsc > linker.lsc
    gcc ${OPTS} -mthumb -mthumb-interwork -Dengine=0 -g -c -w -std=gnu99 -o main.out main.c
    ld -o main.o -T linker.lsc main.out
    objcopy -O binary main.o main.bin
    rm main.o
    rm main.out
    rm linker.lsc

    #Auto-Insert into the ROM
    ifdef fname
    ifdef INSERT
    dd if=main.bin of="$(fname)" conv=notrunc seek=$(INSERT) bs=1
    else
    @echo "Insertion location not found!"
    @echo "Did you forget to define 'offset'?"
    @echo "Ex: make <version> fname=something.gba offset=<offset in hex>"
    endif
    else
    @echo "File location not found!"
    @echo "Did you forget to define 'fname'?"
    @echo "Ex: make <version> fname=<GBA ROM File> insert=1A2B3C"
    endif

    .PHONY : bpre

    #
    #Build for Emerald
    #
    bpee :
    sed 's/^ rom : ORIGIN = 0x08XXXXXX, LENGTH = 32M$$/ rom : ORIGIN = 0x08$(offset), LENGTH = 32M/' linker_base.lsc > linker.lsc
    gcc ${OPTS} -mthumb -mthumb-interwork -Dengine=1 -g -c -w -std=gnu99 -o main.out main.c
    ld -o main.o -T linker.lsc main.out
    objcopy -O binary main.o main.bin
    rm main.o
    rm main.out
    rm linker.lsc

    #Auto-Insert into the ROM
    ifdef fname
    ifdef INSERT
    dd if=main.bin of="$(fname)" conv=notrunc seek=$(INSERT) bs=1
    endif
    endif

    .PHONY : bpee
  5. Tyroz
    October 28th, 2014 06:20 AM
    Tyroz
    That'd be great to have you back on, even if it is for a few days. I hope school is going well. nice to hear from you.
  6. Kenny1
    October 27th, 2014 05:15 PM
    Kenny1
    Thank you Shiny Quagsire, I'll try that later when I get on PC. Thank you for giving me your time to try help me, I REALLY appreciate it.
  7. Kenny1
    October 27th, 2014 06:04 AM
    Kenny1
    I already do compile my own projects, it works, even if I try calling GCC.exe, it says it has no source, so it is working
  8. Kenny1
    October 25th, 2014 09:59 PM
    Kenny1
    Same error, I think
    Spoiler:
    sed 's/^ rom : ORIGIN = 0x08XXXXXX, LENGTH = 32M$/ rom : O
    RIGIN = 0x08800000, LENGTH = 32M/' linker_base.lsc > linker.lsc
    gcc -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-
    branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-p
    ure-const -fipa-profile -fipa-reference -fmerge-constants -fsplit-wide-types -ft
    ree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftre
    e-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phiprop
    -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fomit-frame-pointer -fthread
    -jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-sa
    ves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-c
    hecks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-f
    unctions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpartial-inlini
    ng -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-
    loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict
    -aliasing -fstrict-overflow -ftree-switch-conversion -ftree-tail-merge -ftree-pr
    e -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-a
    fter-reload -ftree-slp-vectorize -fvect-cost-model -fipa-cp-clone -ffast-math -f
    no-protect-parens -fstack-arrays -fforward-propagate -finline-functions-called-o
    nce -fmerge-all-constants -fmodulo-sched -fmodulo-sched-allow-regmoves -fgcse-sm
    -fgcse-las -funsafe-loop-optimizations -fconserve-stack -mthumb -mthumb-interwo
    rk -Dengine=0 -g -c -w -std=gnu99 -o main.out main.c
    make: gcc: Command not found
    make: *** [bpre] Error 127
  9. Kenny1
    October 25th, 2014 10:24 AM
    Kenny1
    Should I reinstall DevkitPro?
  10. Kenny1
    October 25th, 2014 10:04 AM
    Kenny1

About Me

Statistics

Total Posts
Activity by Forum
Visitor Messages
Blog
General Information
  • Last Activity: 3 Hours Ago 11:08 PM
  • Join Date: May 17th, 2009
  • Referrals: 3

Friends

Showing Friends 1 to 20 of 47

Emblems

Emblem Showcase - 1 Total
  Emblem
Amateur Copter Controller
You did all right, you got to 1000 points in ROM Hacking's Helicopter Game event.
Awarded: September 13th, 2010 12:15 PM

All times are UTC -8. The time now is 03:00 AM.