[dpdk-dev] Assembly code

Mahdi Moradmand Badie mahdi.mbadie at gmail.com
Tue Jun 21 23:21:00 CEST 2016


Dear All,

I used the default format of Makefile (as follow) which is available in the
examples,
I was wondering how I could generate the assembly (main.s) related to my
main.c, via Makefile.

PS. using -S doesn't work :(

ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif

# Default target, can be overriden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc

include $(RTE_SDK)/mk/rte.vars.mk

# binary name
APP = Mahdi_test

INC += $(wildcard include/*.h)

# all source are stored in SRCS-y
SRCS-y := main.c

CFLAGS += $(WERROR_FLAGS) -I $(SRCDIR)/include -I/usr/local/include

EXTRA_CFLAGS += -O3
EXTRA_CFLAGS += -Wno-error
EXTRA_CFLAGS += -std=c99

# rte.extapp.mk : External application
include $(RTE_SDK)/mk/rte.extapp.mk

-- 
M at hdi Mor at dm@nd B at die


More information about the dev mailing list